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

Collapse All | Expand All

(-)checkroot (-2 / +6 lines)
Lines 78-88 Link Here
78
		# Create /etc/mtab
78
		# Create /etc/mtab
79
		#
79
		#
80
80
81
		# Clear the existing mtab
81
		> /etc/mtab
82
		> /etc/mtab
83
82
		# Add the entry for / to mtab
84
		# Add the entry for / to mtab
83
		mount -f /
85
		mount -f /
84
		# Make sure we do not have these in there
86
85
		egrep -v '^(rootfs|/dev/root)' /proc/mounts >> /etc/mtab
87
		# Don't list root more than once
88
		awk '$2 != "/" {print}' >> /etc/mtab
89
86
		# Now make sure /etc/mtab have additional info (gid, etc) in there
90
		# Now make sure /etc/mtab have additional info (gid, etc) in there
87
		for x in $(awk '{ print $2 }' /proc/mounts | uniq)
91
		for x in $(awk '{ print $2 }' /proc/mounts | uniq)
88
		do
92
		do

Return to bug 38360