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 / +19 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
							mount -o remount,rw "${mountpoint}"
39
						;;
40
					esac
41
				fi
42
			;;
43
		esac
44
	done; unset mountpoint
45
27
	mount -at "$types" $no_netdev
46
	mount -at "$types" $no_netdev
28
	eend $? "Some local filesystem failed to mount"
47
	eend $? "Some local filesystem failed to mount"
29
48
30
- 

Return to bug 401573