|
|

楼主 |
发表于 2006-12-12 21:33:39
|
显示全部楼层
搞定reiser4!
torres:我用你给的第一个链接,编译内核时出错了:
- CC init/do_mounts.o
- init/do_mounts.c:31:37: error: macro "suspend2_try_resume" passed 1 arguments, but takes just 0
复制代码
于是我依葫芦画瓢,在r4sus2-sources-2.6.18.ebuild的基础上剪了个只带reiser4功能的reiser4-sources-2.6.18.ebuild(即去了suspend2),这凑合算是我第一个ebuild(嘻嘻!“窃取”了torres和Hauser的成果,在此感谢2位!):
- # copyright 1999-2006 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header: reiser4-sources-2.6.18.ebuild, 2006/12/12 $
- ETYPE="sources"
- K_WANT_GENPATCHES="base extras"
- K_GENPATCHES_VER="4"
- R4V="-3"
- inherit eutils kernel-2
- detect_version
- detect_arch
- KEYWORDS="~amd64 ~x86"
- HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.namesys.com/v4/v4.html"
- DESCRIPTION="Full sources including the gentoo patchset, Software Suspend 2 and
- the Reiser4 patchset"
- UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
- UNIPATCH_STRICTORDER="yes"
- SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ftp://ftp.namesys.com/pub/reiser4-for-${KV_MAJOR}.${KV_MINOR}/${PV}/reiser4-for-${PV}${R4V}.patch.gz"
- pkg_postinst() {
- postinst_sources
- echo
- einfo "For more info on this patchset, and how to report problems, see:"
- einfo "${HOMEPAGE}"
- }
复制代码
其它步骤跟torres说的一样
http://www.linuxsir.cn/bbs/showthread.php?t=258172
make menuconfig时我只多加了2个关于reiser4的选项
- <*> Reiser4 (EXPERIMENTAL) │ │
- │ │ [*] Enable reiser4 debug mode
复制代码
不知第二个是否多余?但是至少加上去是没问题的。
现在我的portage分区已经用上reiser4了
- #df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/mapper/myvg-portage 210M 188M 22M 90% /usr/portage
复制代码
比起我以前用ext3放portage,portage少占了753-210=543M,呵呵!很神奇吧!像我磁盘空间比较紧张的同志不妨也来试试! |
|