Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 339472 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-fs/nilfs-utils/nilfs-utils-2.0.18.ebuild (+2 lines)
Lines 20-24 DEPEND="${DEPEND} Link Here
20
src_install() {
20
src_install() {
21
	emake DESTDIR="${D}" install || die
21
	emake DESTDIR="${D}" install || die
22
22
23
	newinitd "${FILESDIR}"/nilfs2.initd nilfs2
24
	einfo "If you use nilfs2 as root fs - do 'rc-update add nilfs2 boot' to run nilfs2_cleanerd"
23
	dodoc AUTHORS ChangeLog NEWS README || die
25
	dodoc AUTHORS ChangeLog NEWS README || die
24
}
26
}
(-)/usr/portage/sys-fs/nilfs-utils/files/nilfs2.initd (+26 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
# (c) Dzianis Kahanovich
3
# Distributed under the terms of the GNU General Public License v2
4
5
description="Force nilfs2_cleanerd on root"
6
7
depend()
8
{
9
	need root
10
	before mtab
11
}
12
13
start()
14
{
15
	if [[ -e /etc/conf.d/fsck ]]; then
16
		. /etc/conf.d/fsck
17
		if ! yesno ${fsck_on_battery:-YES} && ! on_ac_power; then
18
			ewarn "Not forcing nilfs2_cleanerd due to not being on AC power & /etc/conf.d/fsck"
19
			return 0
20
		fi
21
	fi
22
	ebegin "Remounting root filesystem fake to help nilfs2"
23
	mount -fo remount /
24
	eend $?
25
	return $?
26
}

Return to bug 339472