Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 427998
Collapse All | Expand All

(-)a/etc/init.d/root (-2 / +13 lines)
Lines 21-29 Link Here
21
				rm -f /fastboot /forcefsck
21
				rm -f /fastboot /forcefsck
22
			else
22
			else
23
				ebegin "Remounting root filesystem read/write"
23
				ebegin "Remounting root filesystem read/write"
24
				local nfs_root="$(awk '!/^[[:space:]]*#/ && ($2 == "/")  \
25
					&& ($3 == "nfs" || $3 =="nfs4" ) \
26
					{printf("%s %s\n", $1, $2)}' \
27
					/etc/fstab)"
24
				case "$RC_UNAME" in
28
				case "$RC_UNAME" in
25
					Linux)
29
					Linux)
26
						mount -n -o remount,rw /
30
						if [[ -n "${nfs_root}" ]]; then
31
							einfo "Found NFS rootfs(${nfs_root})."
32
							einfo "Trying to remount NFS / read-write ..."
33
							mount -n ${nfs_root} -o remount,rw
34
						else
35
							mount -n -o remount,rw /
36
						fi
37
27
					;;
38
					;;
28
					*)
39
					*)
29
						mount -u -o rw /
40
						mount -u -o rw /
Lines 37-43 Link Here
37
		;;
48
		;;
38
	esac
49
	esac
39
50
40
	ebegin "Remounting filesystems"
51
	ebegin "Remounting other (!=\"/\") filesystems"
41
	local mountpoint
52
	local mountpoint
42
	for mountpoint in $(fstabinfo); do
53
	for mountpoint in $(fstabinfo); do
43
		case "${mountpoint}" in
54
		case "${mountpoint}" in

Return to bug 427998