aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2008-12-14 19:18:33 -0600
committerAndrew Gaffney <agaffney@gentoo.org>2008-12-14 19:18:33 -0600
commit8dcac4a20de28f69ec93494cf026845bc4de0add (patch)
tree0f023b808697d83999d8b2cb097028c665360149 /gen_determineargs.sh
parentChange -f checks to -e for /dev nodes (diff)
downloadgenkernel-8dcac4a20de28f69ec93494cf026845bc4de0add.tar.gz
genkernel-8dcac4a20de28f69ec93494cf026845bc4de0add.tar.bz2
genkernel-8dcac4a20de28f69ec93494cf026845bc4de0add.zip
Initial commit for re-adding support for --bootloader=grub
Diffstat (limited to 'gen_determineargs.sh')
-rw-r--r--gen_determineargs.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/gen_determineargs.sh b/gen_determineargs.sh
index 02995bc1..aea05f25 100644
--- a/gen_determineargs.sh
+++ b/gen_determineargs.sh
@@ -138,6 +138,16 @@ determine_real_args() {
BLKID_BINCACHE=`arch_replace "${BLKID_BINCACHE}"`
FUSE_BINCACHE=`arch_replace "${FUSE_BINCACHE}"`
UNIONFS_FUSE_BINCACHE=`arch_replace "${UNIONFS_FUSE_BINCACHE}"`
+
+ if [ -n "${CMD_BOOTLOADER}" ]
+ then
+ BOOTLOADER="${CMD_BOOTLOADER}"
+ if [ "${CMD_BOOTLOADER}" != "${CMD_BOOTLOADER/:/}" ]
+ then
+ BOOTFS=`echo "${CMD_BOOTLOADER}" | cut -f2- -d:`
+ BOOTLOADER=`echo "${CMD_BOOTLOADER}" | cut -f1 -d:`
+ fi
+ fi
if [ "${NO_KERNEL_SOURCES}" != "1" ]
then