aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2008-12-13 14:15:24 -0600
committerAndrew Gaffney <agaffney@gentoo.org>2008-12-13 14:15:24 -0600
commit462e35fe870fdd37951c78df2b22385107585302 (patch)
treed3e227ba1cb45706d9dec06515ebe877196743ba /gen_initramfs.sh
parentSwitch search order so arch-specific is first for busy-config (diff)
downloadgenkernel-462e35fe870fdd37951c78df2b22385107585302.tar.gz
genkernel-462e35fe870fdd37951c78df2b22385107585302.tar.bz2
genkernel-462e35fe870fdd37951c78df2b22385107585302.zip
Add --real-root=<foo> parameter to specify a default for real_root= in the initramfs for gentoo bug #249783
Diffstat (limited to 'gen_initramfs.sh')
-rw-r--r--gen_initramfs.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh
index 045574a..e14604c 100644
--- a/gen_initramfs.sh
+++ b/gen_initramfs.sh
@@ -451,6 +451,11 @@ append_auxilary() {
else
cp "${GK_SHARE}/defaults/initrd.defaults" "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"
fi
+
+ if [ -n "${REAL_ROOT}" ]
+ then
+ sed -i "s/^REAL_ROOT=.*$/REAL_ROOT='${REAL_ROOT}'/" "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"
+ fi
echo -n 'HWOPTS="$HWOPTS ' >> "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"
for group_modules in ${!MODULES_*}; do