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

Collapse All | Expand All

(-)init.d/checkroot (-12 / +7 lines)
Lines 14-32 Link Here
14
	ebegin "Updating /etc/mtab"
14
	ebegin "Updating /etc/mtab"
15
15
16
	# Add the entry for / to mtab
16
	# Add the entry for / to mtab
17
	mount -f /
17
	if fstabinfo --quiet /; then
18
		mount -f /
19
		# Don't list root more than once
20
		grep -v "^[^ ]* / " /proc/mounts >> /etc/mtab
21
	else
22
		cat /proc/mounts > /etc/mtab
23
	fi
18
24
19
	# Don't list root more than once
20
	grep -v "^[^ ]* / " /proc/mounts >> /etc/mtab
21
22
	# Now make sure /etc/mtab have additional info (gid, etc) in there
23
	local mnt=
24
	mountinfo | while read mnt; do
25
		if fstabinfo --quiet "${mnt}"; then
26
			mount -f -o remount "${mnt}"
27
		fi
28
	done
29
30
	# Remove stale backups
25
	# Remove stale backups
31
	rm -f /etc/mtab~ /etc/mtab~~
26
	rm -f /etc/mtab~ /etc/mtab~~
32
	eend 0
27
	eend 0

Return to bug 194615