Initial commit for re-adding support for --bootloader=grub
[genkernel.git] / gen_cmdline.sh
index 84e135ee1bb73ab4ba68092c68a0b93072b469a4..954112f4eedd662154ab3444a9d6a38adbe92d9d 100755 (executable)
@@ -84,15 +84,16 @@ longusage() {
   echo "       --mdadm                 Copy /etc/mdadm.conf to initramfs"
   echo "       --dmraid                Include DMRAID support"
   echo "       --slowusb               Enables extra pauses for slow USB CD boots"
+  echo "       --bootloader=grub       Add new kernel to GRUB configuration"
   echo "       --linuxrc=<file>        Specifies a user created linuxrc"
   echo "       --disklabel             Include disk label and uuid support in your"
   echo "                               ramdisk"
   echo "       --luks                  Include LUKS support"
   echo "                               --> 'emerge cryptsetup-luks' with USE=-dynamic"
-  echo "    --no-busybox    Do not include busybox in the initramfs."
-  echo "    --unionfs       Include support for unionfs"
-  echo "    --netboot          Create a self-contained env in the initramfs"
-  echo "    --real-root=<foo>  Specify a default for real_root=
+  echo "       --no-busybox    Do not include busybox in the initramfs."
+  echo "       --unionfs       Include support for unionfs"
+  echo "       --netboot       Create a self-contained env in the initramfs"
+  echo "       --real-root=<foo> Specify a default for real_root="
   echo "  Internals"
   echo "       --arch-override=<arch>  Force to arch instead of autodetect"
   echo "       --cachedir=<dir>        Override the default cache location"
@@ -273,6 +274,10 @@ parse_cmdline() {
                        CMD_DMRAID=1
                        print_info 2 "CMD_DMRAID: ${CMD_DMRAID}"
                        ;;
+               --bootloader=*)
+                       CMD_BOOTLOADER=`parse_opt "$*"`
+                       print_info 2 "CMD_BOOTLOADER: ${CMD_BOOTLOADER}"
+                       ;;
                --loglevel=*)
                        CMD_LOGLEVEL=`parse_opt "$*"`
                        LOGLEVEL="${CMD_LOGLEVEL}"
@@ -381,7 +386,7 @@ parse_cmdline() {
                        print_info 2 "CMD_NOINSTALL: ${CMD_NOINSTALL}"
                        ;;
                --no-ramdisk-modules)
-                       CMD_NOiRAMDISKMODULES=1
+                       CMD_NORAMDISKMODULES=1
                        print_info 2 "CMD_NORAMDISKMODULES: ${CMD_NORAMDISKMODULES}"
                        ;;
                --all-ramdisk-modules)