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

Collapse All | Expand All

(-)init.d/localmount.in (+17 lines)
Lines 30-35 Link Here
30
	mount -at "$types" $no_netdev
30
	mount -at "$types" $no_netdev
31
	eend $? "Some local filesystem failed to mount"
31
	eend $? "Some local filesystem failed to mount"
32
32
33
	# Remount any read-only bind-mounts so that they actually become read-only!
34
	for m in `awk '/^\//   {
35
		split($4,opts,",");
36
		bm = ro = na = 0;
37
		for (i in opts)
38
		{
39
			ro = ro || (opts[i] == "ro");
40
			bm = bm || ((opts[i] == "bind") || (opts[i] == "rbind"));
41
			na = na || (opts[i] == "noauto");
42
		}
43
		if (bm && ro && !na)
44
			print $2;
45
		}' /etc/fstab`
46
	do
47
		mount -o remount "${m}"
48
	done
49
33
	# Always return 0 - some local mounts may not be critical for boot
50
	# Always return 0 - some local mounts may not be critical for boot
34
	return 0
51
	return 0
35
}
52
}

Return to bug 467368