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 / +31 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
									if [ "${mountpoint}" = '/' ]; then
41
										local mountopts='-n'
42
									else
43
										unset mountopts
44
									fi
45
									mount ${mountopts} -o remount,rw "${mountpoint}"
46
								;;
47
								*BSD|DragonFly)
48
									mount -u -o rw "${mountpoint}"
49
								;;
50
							esac
51
						;;
52
					esac
53
				fi
54
			;;
55
		esac
56
	done; unset mountpoint
57
27
	mount -at "$types" $no_netdev
58
	mount -at "$types" $no_netdev
28
	eend $? "Some local filesystem failed to mount"
59
	eend $? "Some local filesystem failed to mount"
29
60
30
- 

Return to bug 401573