Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 449190
Collapse All | Expand All

(-)a/defaults/linuxrc (-7 / +17 lines)
Lines 37-43 CMDLINE=$(cat /proc/cmdline) Link Here
37
# Scan CMDLINE for any specified real_root= or cdroot arguments
37
# Scan CMDLINE for any specified real_root= or cdroot arguments
38
FAKE_ROOT=''
38
FAKE_ROOT=''
39
FAKE_INIT=''
39
FAKE_INIT=''
40
REAL_ROOTFLAGS=''
40
FAKE_ROOTFLAGS=''
41
INIT_OPTS=''
41
INIT_OPTS=''
42
ROOTFSTYPE='auto'
42
ROOTFSTYPE='auto'
43
CRYPT_SILENT=0
43
CRYPT_SILENT=0
Lines 236-241 do Link Here
236
		real_rootflags=*)
236
		real_rootflags=*)
237
			REAL_ROOTFLAGS=${x#*=}
237
			REAL_ROOTFLAGS=${x#*=}
238
		;;
238
		;;
239
		rootflags=*)
240
			FAKE_ROOTFLAGS=${x#*=}
241
		;;
239
		rootfstype=*)
242
		rootfstype=*)
240
			ROOTFSTYPE=${x#*=}
243
			ROOTFSTYPE=${x#*=}
241
		;;
244
		;;
Lines 267-279 do Link Here
267
	esac
270
	esac
268
done
271
done
269
272
270
if [ -z "${REAL_ROOT}" -a \( "${CDROOT}" = '0' \)  -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ]
273
if [ \( "${CDROOT}" = '0' \) ]
271
then
272
	REAL_ROOT="${FAKE_ROOT}"
273
fi
274
if [ -z "${REAL_INIT}" -a \( "${CDROOT}" = '0' \)  -a \( "${FAKE_INIT}" != "/linuxrc" \) ]
275
then
274
then
276
	REAL_INIT="${FAKE_INIT}"
275
	if [ -z "${REAL_ROOT}" -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ]
276
	then
277
		REAL_ROOT="${FAKE_ROOT}"
278
	fi
279
	if [ -z "${REAL_INIT}" -a \( "${FAKE_INIT}" != "/linuxrc" \) ]
280
	then
281
		REAL_INIT="${FAKE_INIT}"
282
	fi
283
	if [ -z "${REAL_ROOTFLAGS}" ]
284
	then
285
		REAL_ROOTFLAGS="${FAKE_ROOTFLAGS}"
286
	fi
277
fi
287
fi
278
288
279
# Set variables based on the value of REAL_ROOT
289
# Set variables based on the value of REAL_ROOT
(-)a/doc/genkernel.8.txt (-3 / +6 lines)
Lines 545-553 which the ramdisk scripts would recognize. Link Here
545
*aufs*::
545
*aufs*::
546
    Enables support for AUFS2 (if available in the kernel).
546
    Enables support for AUFS2 (if available in the kernel).
547
547
548
*real_rootflags*=<...>::
548
*rootflags*=<...>::
549
    Additional flags to mount the real root system with.
549
    Additional flags to mount the real root system with.
550
    For example *real_rootflags*=noatime would make "-o ro,noatime".
550
    For example *rootflags*=noatime would make "-o ro,noatime".
551
552
*real_rootflags*=<...>::
553
    Legacy kernel parameter from kernel-2.4 initrd.
554
    Does the same as *rootflags*=, which should be used in its place.
551
555
552
*real_resume*=<...>::
556
*real_resume*=<...>::
553
*resume*=<...>::
557
*resume*=<...>::
554
- 

Return to bug 449190