QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2849|回复: 11

Gentoosources+Reiser4+Suspend2

[复制链接]
发表于 2006-5-21 23:05:16 | 显示全部楼层 |阅读模式
更新:2.6.17的ebuild在这儿:http://www.linuxfans.org/nuke/mo ... p;p=4712750#4712750

Ebuild基于gentoo-sources-2.6.16-r7,不过我去掉了ultra1, sparc的东西。我称之为r4sus2-gentoo-sources。安装方法:
[code:1]# mkdir -p /usr/local/portage/sys-kernel/r4sus2-gentoo-sources[/code:1]
将以下r4sus2-gentoo-sources-2.6.16.ebuild拷至刚建的目录:
[code:1]# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="9"
R4V="-2"
inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net http://www.namesys.com/v4/v4.html"

DESCRIPTION="Full sources including the Gentoo patchset, Software Suspend 2 and the Reiser4 patchset"

SUSPEND2_VERSION="2.2.5"
SUSPEND2_TARGET="2.6.16.9"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.tar.bz2"

UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.tar.bz2 ${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_STRICTORDER="yes"

RDEPEND="${RDEPEND}
                >=sys-apps/suspend2-userui-0.6.1
                >=sys-power/hibernate-script-1.12"

SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_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}"
}
[/code:1]
然后
[code:1]# echo 'sys-kernel/r4sus2-gentoo-sources ~x86' >> /etc/portage/package.keywords
# ebuild /usr/local/portage/sys-kernel/r4sus2-gentoo-sources/r4sus2-gentoo-sources-2.6.16.ebuild digest
# USE="symlink" emerge -av r4sus2-gentoo-sources[/code:1]
如果你只要Reiser4,不要Software Suspend 2,可以将ebuild改成:[code:1]# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="9"
R4V="-2"
inherit 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 and the Reiser4 patchset"

UNIPATCH_LIST="${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"

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}"
}[/code:1]
发表于 2006-5-22 00:42:09 | 显示全部楼层



曾经用过reiserfs 4 ,用回 3.6了。
等它进了kernel tree 再用。
回复

使用道具 举报

发表于 2006-5-22 17:16:24 | 显示全部楼层
友情帮顶
回复

使用道具 举报

发表于 2006-5-22 18:17:52 | 显示全部楼层
reiserfs 4硬盘不再异响  
回复

使用道具 举报

发表于 2006-5-22 20:42:00 | 显示全部楼层
关注,不过还是等等
回复

使用道具 举报

 楼主| 发表于 2006-5-23 14:19:21 | 显示全部楼层
[quote:3ab018106e="道"]...
等它进了kernel tree 再用。[/quote]
那可能要等很久的。不过reiser4确实没稳定下来,我就试过旧系统做的reiser4分区用新系统(reiser4progs和kernel版本都不同)挂载了一下,再回到旧系统就挂不起来了。
我现在主要在/usr/portage用reiser4,因为涉及大量的小文件,用reiser4较快,占空间小(160几M,不包括distfiles或packages),出了问题影响也不大。
回复

使用道具 举报

发表于 2006-5-23 15:17:25 | 显示全部楼层
[quote:fb1fc5bb72="Hauser"]...
我现在主要在/usr/portage用reiser4,因为涉及大量的小文件,用reiser4较快,占空间小(160几M,不包括distfiles或packages),出了问题影响也不大。[/quote]
160几M?!
[code:1]$ du -ch /usr/portage
...
692M    total
$ du -ch /usr/portage/distfiles
...
161M    total
$ du -ch /usr/portage/packages
...
54M     total[/code:1]
692M - 161M - 54M = 477M
晕!我用reiserfs的,怎么差这么多?
回复

使用道具 举报

发表于 2006-5-24 18:52:53 | 显示全部楼层
偶一直ext3..............................
回复

使用道具 举报

发表于 2006-5-24 22:19:51 | 显示全部楼层
除了ext3,用过一段reiserfs,还有几天xfs
回复

使用道具 举报

发表于 2006-5-30 15:35:46 | 显示全部楼层
Suspend2很不错
回复

使用道具 举报

 楼主| 发表于 2006-8-2 13:51:05 | 显示全部楼层
r4sus2-gentoo-sources-2.6.17.ebuild

基于gentoo-sources-2.6.17-r4:
[code:1]# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

ETYPE="sources"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="5"
R4V="-3"

inherit kernel-2
detect_version
detect_arch

KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://dev.gentoo.org/~dsd/genpatches  http://www.suspend2.net http://www.namesys.com/v4/v4.html"

DESCRIPTION="Full sources including the gentoo patchset, Software Suspend 2 and the Reiser4 patchset"

SUSPEND2_VERSION="2.2.7.1"
SUSPEND2_TARGET="2.6.17"
SUSPEND2_SRC="suspend2-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.suspend2.net/downloads/all/${SUSPEND2_SRC}.tar.bz2"

UNIPATCH_LIST="${DISTDIR}/${SUSPEND2_SRC}.tar.bz2 ${DISTDIR}/reiser4-for-${PV}${R4V}.patch.gz"
UNIPATCH_STRICTORDER="yes"

SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${SUSPEND2_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}"
}[/code:1]
回复

使用道具 举报

发表于 2006-8-2 18:19:59 | 显示全部楼层
    
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-7-1 16:29 , Processed in 0.139257 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表