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

Collapse All | Expand All

(-)a/init.d/localmount.in (-1 / +26 lines)
Lines 24-29 start() Link Here
24
		no_netdev="-O no_netdev"
24
		no_netdev="-O no_netdev"
25
	fi
25
	fi
26
	ebegin "Mounting local filesystems"
26
	ebegin "Mounting local filesystems"
27
28
	# Remount already-mounted filesystems into rw unless fstab contain ro flag for the particular mount points.
29
	for mountpoint in $(fstabinfo); do
30
		case "${mountpoint}" in
31
			'/'*)
32
				if mountinfo -q "${mountpoint}" && mountinfo -q -o ro "${mountpoint}"; then
33
					case ",$(fstabinfo -o "${mountpoint}")," in
34
						*,ro,*)
35
							:
36
						;;
37
						*)
38
							case "$RC_UNAME" in
39
								Linux)
40
									mount -o remount,rw "${mountpoint}"
41
								;;
42
								*BSD|DragonFly)
43
									mount -u -o rw "${mountpoint}"
44
								;;
45
							esac
46
						;;
47
					esac
48
				fi
49
			;;
50
		esac
51
	done; unset mountpoint
52
27
	mount -at "$types" $no_netdev
53
	mount -at "$types" $no_netdev
28
	eend $? "Some local filesystem failed to mount"
54
	eend $? "Some local filesystem failed to mount"
29
55
30
- 

Return to bug 401573