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

Collapse All | Expand All

(-)init.org (-3 / +8 lines)
Lines 44-49 Link Here
44
REAL_ROOT=''
44
REAL_ROOT=''
45
FAKE_ROOT=''
45
FAKE_ROOT=''
46
REAL_ROOTFLAGS=''
46
REAL_ROOTFLAGS=''
47
REAL_ROOTFS='auto'
47
CRYPT_SILENT=0
48
CRYPT_SILENT=0
48
for x in ${CMDLINE}
49
for x in ${CMDLINE}
49
do
50
do
Lines 180-185 Link Here
180
		real_rootflags\=*)
181
		real_rootflags\=*)
181
			REAL_ROOTFLAGS=`parse_opt "${x}"`
182
			REAL_ROOTFLAGS=`parse_opt "${x}"`
182
		;;
183
		;;
184
		real_rootfs\=*)
185
			REAL_ROOTFS=`parse_opt "${x}"`
186
		;;
183
		keymap\=*)
187
		keymap\=*)
184
			keymap=`parse_opt "${x}"`
188
			keymap=`parse_opt "${x}"`
185
		;;
189
		;;
Lines 393-402 Link Here
393
		else
397
		else
394
			# mount ro so fsck doesn't barf later
398
			# mount ro so fsck doesn't barf later
395
			if [ "${REAL_ROOTFLAGS}" = '' ]; then
399
			if [ "${REAL_ROOTFLAGS}" = '' ]; then
396
				mount -o ro ${REAL_ROOT} ${NEW_ROOT}
400
				good_msg "Using mount -t ${REAL_ROOTFS} -o ro"
401
				mount -t ${REAL_ROOTFS} -o ro ${REAL_ROOT} ${NEW_ROOT}
397
			else
402
			else
398
				good_msg "Using mount -o ro,${REAL_ROOTFLAGS}"
403
				good_msg "Using mount -t ${REAL_ROOTFS} -o ro,${REAL_ROOTFLAGS}"
399
				mount -o ro,${REAL_ROOTFLAGS} ${REAL_ROOT} ${NEW_ROOT}
404
				mount -t ${REAL_ROOTFS} -o ro,${REAL_ROOTFLAGS} ${REAL_ROOT} ${NEW_ROOT}
400
			fi
405
			fi
401
		fi
406
		fi
402
		
407
		

Return to bug 221245