--- /usr/portage/sys-fs/nilfs-utils/nilfs-utils-2.0.18.ebuild 2010-07-26 20:49:50.000000000 +0300 +++ nilfs-utils-2.0.20.ebuild 2010-10-02 17:39:45.100000150 +0300 @@ -20,5 +20,7 @@ DEPEND="${DEPEND} src_install() { emake DESTDIR="${D}" install || die + newinitd "${FILESDIR}"/nilfs2.initd nilfs2 + einfo "If you use nilfs2 as root fs - do 'rc-update add nilfs2 boot' to run nilfs2_cleanerd" dodoc AUTHORS ChangeLog NEWS README || die } --- /usr/portage/sys-fs/nilfs-utils/files/nilfs2.initd 1970-01-01 03:00:00.000000000 +0300 +++ files/nilfs2.initd 2010-10-02 17:30:46.170000151 +0300 @@ -0,0 +1,18 @@ +#!/sbin/runscript +# (c) Dzianis Kahanovich +# Distributed under the terms of the GNU General Public License v2 + +description="Force nilfs2_cleanerd on root" + +depend() +{ + need root + before mtab +} + +start() +{ + ebegin "Remounting root filesystem fake to help nilfs2" + mount -fo remount / + eend $? +}