@ -26,26 +26,30 @@ longusage() {
echo " --menuconfig Run menuconfig after oldconfig"
echo " --menuconfig Run menuconfig after oldconfig"
echo " --no-menuconfig Do not run menuconfig after oldconfig"
echo " --no-menuconfig Do not run menuconfig after oldconfig"
echo " --gconfig Run gconfig after oldconfig"
echo " --gconfig Run gconfig after oldconfig"
echo " --no-gconfig Don't run gconfig after oldconfig"
echo " --xconfig Run xconfig after oldconfig"
echo " --xconfig Run xconfig after oldconfig"
echo " --no-xconfig Don't run xconfig after oldconfig"
echo " --save-config Save the configuration to /etc/kernels"
echo " --save-config Save the configuration to /etc/kernels"
echo " --no-save-config Don't save the configuration to /etc/kernels"
echo " --no-save-config Don't save the configuration to /etc/kernels"
echo " Kernel Compile settings"
echo " Kernel Compile settings"
echo " --oldconfig Implies --no-clean and runs a 'make oldconfig'"
echo " --clean Run make clean before compilation"
echo " --clean Run make clean before compilation"
echo " --mrproper Run make mrproper before compilation"
echo " --no-clean Do not run make clean before compilation"
echo " --no-clean Do not run make clean before compilation"
echo " --mrproper Run make mrproper before compilation"
echo " --no-mrproper Do not run make mrproper before compilation"
echo " --no-mrproper Do not run make mrproper before compilation"
echo " --oldconfig Implies --no-clean and runs a 'make oldconfig'"
echo " --splash Install framebuffer splash support into initramfs"
echo " --splash Install framebuffer splash support into initramfs"
echo " --no-splash Do not install framebuffer splash"
echo " --no-splash Do not install framebuffer splash"
echo " --install Install the kernel after building"
echo " --install Install the kernel after building"
echo " --no-install Do not install the kernel after building"
echo " --no-install Do not install the kernel after building"
echo " --symlink Manage symlinks in /boot for installed images"
echo " --symlink Manage symlinks in /boot for installed images"
echo " --no-symlink Do not manage symlinks"
echo " --no-symlink Do not manage symlinks"
echo " --ramdisk-modules Copy required modules to the ramdisk"
echo " --no-ramdisk-modules Don't copy any modules to the ramdisk"
echo " --no-ramdisk-modules Don't copy any modules to the ramdisk"
echo " --all-ramdisk-modules Copy all kernel modules to the ramdisk"
echo " --all-ramdisk-modules Copy all kernel modules to the ramdisk"
echo " --callback=<...> Run the specified arguments after the"
echo " --callback=<...> Run the specified arguments after the"
echo " kernel and modules have been compiled"
echo " kernel and modules have been compiled"
echo " --static Build a static (monolithic kernel)."
echo " --static Build a static (monolithic kernel)."
echo " --no-static Do not build a static (monolithic kernel)."
echo " Kernel settings"
echo " Kernel settings"
echo " --kerneldir=<dir> Location of the kernel sources"
echo " --kerneldir=<dir> Location of the kernel sources"
echo " --kernel-config=<file> Kernel configuration file to use for compilation"
echo " --kernel-config=<file> Kernel configuration file to use for compilation"
@ -77,31 +81,43 @@ longusage() {
echo " --splash=<theme> Enable framebuffer splash using <theme>"
echo " --splash=<theme> Enable framebuffer splash using <theme>"
echo " --splash-res=<res> Select splash theme resolutions to install"
echo " --splash-res=<res> Select splash theme resolutions to install"
echo " --do-keymap-auto Forces keymap selection at boot"
echo " --do-keymap-auto Forces keymap selection at boot"
echo " --keymap Enables keymap selection support"
echo " --no-keymap Disables keymap selection support"
echo " --no-keymap Disables keymap selection support"
echo " --lvm Include LVM support"
echo " --lvm Include LVM support"
echo " --no-lvm Exclude LVM support"
echo " --mdadm Include MDADM/MDMON support"
echo " --mdadm Include MDADM/MDMON support"
echo " --no-mdadm Exclude MDADM/MDMON support"
echo " --mdadm-config=<file> Use file as mdadm.conf in initramfs"
echo " --mdadm-config=<file> Use file as mdadm.conf in initramfs"
echo " --dmraid Include DMRAID support"
echo " --dmraid Include DMRAID support"
echo " --no-dmraid Exclude DMRAID support"
echo " --multipath Include Multipath support"
echo " --multipath Include Multipath support"
echo " --no-multipath Exclude Multipath support"
echo " --iscsi Include iSCSI support"
echo " --iscsi Include iSCSI support"
echo " --no-iscsi Exclude iSCSI support"
echo " --bootloader=grub Add new kernel to GRUB configuration"
echo " --bootloader=grub Add new kernel to GRUB configuration"
echo " --linuxrc=<file> Specifies a user created linuxrc"
echo " --linuxrc=<file> Specifies a user created linuxrc"
echo " --busybox-config=<file> Specifies a user created busybox config"
echo " --busybox-config=<file> Specifies a user created busybox config"
echo " --genzimage Make and install kernelz image (PowerPC)"
echo " --genzimage Make and install kernelz image (PowerPC)"
echo " --disklabel Include disk label and uuid support in your "
echo " --disklabel Include disk label and uuid support in your ramdisk "
echo " ramdisk"
echo " --no-disklabel Exclude disk label and uuid support in your ramdisk"
echo " --luks Include LUKS support"
echo " --luks Include LUKS support"
echo " --> 'emerge cryptsetup-luks' with USE=-dynamic"
echo " --> 'emerge cryptsetup-luks' with USE=-dynamic"
echo " --no-luks Exclude LUKS support"
echo " --gpg Include GPG-armored LUKS key support"
echo " --gpg Include GPG-armored LUKS key support"
echo " --no-busybox Do not include busybox in the initramfs."
echo " --no-gpg Exclude GPG-armored LUKS key support"
echo " --busybox Include busybox"
echo " --no-busybox Exclude busybox"
echo " --unionfs Include support for unionfs"
echo " --unionfs Include support for unionfs"
echo " --no-unionfs Exclude support for unionfs"
echo " --netboot Create a self-contained env in the initramfs"
echo " --netboot Create a self-contained env in the initramfs"
echo " --no-netboot Exclude --netboot env"
echo " --real-root=<foo> Specify a default for real_root="
echo " --real-root=<foo> Specify a default for real_root="
echo " Internals"
echo " Internals"
echo " --arch-override=<arch> Force to arch instead of autodetect"
echo " --arch-override=<arch> Force to arch instead of autodetect"
echo " --cachedir=<dir> Override the default cache location"
echo " --cachedir=<dir> Override the default cache location"
echo " --tempdir=<dir> Location of Genkernel's temporary directory"
echo " --tempdir=<dir> Location of Genkernel's temporary directory"
echo " --postclear Clear all tmp files and caches after genkernel has run"
echo " --postclear Clear all tmp files and caches after genkernel has run"
echo " --no-postclear Do not clean up after genkernel has run"
echo " Output Settings"
echo " Output Settings"
echo " --kernname=<...> Tag the kernel and ramdisk with a name:"
echo " --kernname=<...> Tag the kernel and ramdisk with a name:"
echo " If not defined the option defaults to"
echo " If not defined the option defaults to"
@ -130,9 +146,9 @@ longusage() {
echo " Specifies specific firmware files to copy. This"
echo " Specifies specific firmware files to copy. This"
echo " overrides --firmware-dir. For multiple files,"
echo " overrides --firmware-dir. For multiple files,"
echo " separate the filenames with a comma"
echo " separate the filenames with a comma"
echo " --integrated-initramfs "
echo " --integrated-initramfs , --no-integrated-initramfs "
echo " Build the generated initramfs into the kernel instead of "
echo " Include/exclude the generated initramfs in the kernel "
echo " keeping it as a separate file"
echo " instead of keeping it as a separate file"
}
}
usage( ) {
usage( ) {
@ -151,6 +167,12 @@ usage() {
echo ' genkernel --help'
echo ' genkernel --help'
}
}
parse_optbool( ) {
local opt = ${ 1 /--no-*/0 } # false
opt = ${ opt /--*/1 } # true
echo $opt
}
parse_cmdline( ) {
parse_cmdline( ) {
case " $* " in
case " $* " in
--kernel-cc= *)
--kernel-cc= *)
@ -211,12 +233,8 @@ parse_cmdline() {
CMD_MAKEOPTS = ` parse_opt " $* " `
CMD_MAKEOPTS = ` parse_opt " $* " `
print_info 2 " CMD_MAKEOPTS: ${ CMD_MAKEOPTS } "
print_info 2 " CMD_MAKEOPTS: ${ CMD_MAKEOPTS } "
; ;
; ;
--mountboot)
--mountboot| --no-mountboot)
CMD_MOUNTBOOT = 1
CMD_MOUNTBOOT = ` parse_optbool " $* " `
print_info 2 " CMD_MOUNTBOOT: ${ CMD_MOUNTBOOT } "
; ;
--no-mountboot)
CMD_MOUNTBOOT = 0
print_info 2 " CMD_MOUNTBOOT: ${ CMD_MOUNTBOOT } "
print_info 2 " CMD_MOUNTBOOT: ${ CMD_MOUNTBOOT } "
; ;
; ;
--bootdir= *)
--bootdir= *)
@ -228,70 +246,70 @@ parse_cmdline() {
CMD_KEYMAP = 1
CMD_KEYMAP = 1
print_info 2 " CMD_DOKEYMAPAUTO: ${ CMD_DOKEYMAPAUTO } "
print_info 2 " CMD_DOKEYMAPAUTO: ${ CMD_DOKEYMAPAUTO } "
; ;
; ;
--no-keymap)
--keymap| -- no-keymap)
CMD_KEYMAP = 0
CMD_KEYMAP = ` parse_optbool " $* " `
print_info 2 " CMD_KEYMAP: ${ CMD_KEYMAP } "
print_info 2 " CMD_KEYMAP: ${ CMD_KEYMAP } "
; ;
; ;
--lvm)
--lvm| --no-lvm)
CMD_LVM = 1
CMD_LVM = ` parse_optbool " $* " `
print_info 2 " CMD_LVM: ${ CMD_LVM } "
print_info 2 " CMD_LVM: ${ CMD_LVM } "
; ;
; ;
--lvm2)
--lvm2| --no-lvm2)
CMD_LVM = 1
CMD_LVM = ` parse_optbool " $* " `
print_info 2 " CMD_LVM: ${ CMD_LVM } "
print_info 2 " CMD_LVM: ${ CMD_LVM } "
echo
echo
print_warning 1 "Please use --lvm, as --lvm2 is deprecated."
print_warning 1 "Please use --lvm, as --lvm2 is deprecated."
; ;
; ;
--mdadm)
--mdadm| --no-mdadm)
CMD_MDADM = 1
CMD_MDADM = ` parse_optbool " $* " `
print_info 2 " CMD_MDADM: $CMD_MDADM "
print_info 2 " CMD_MDADM: $CMD_MDADM "
; ;
; ;
--mdadm-config= *)
--mdadm-config= *)
CMD_MDADM_CONFIG = ` parse_opt " $* " `
CMD_MDADM_CONFIG = ` parse_opt " $* " `
print_info 2 " CMD_MDADM_CONFIG: $CMD_MDADM_CONFIG "
print_info 2 " CMD_MDADM_CONFIG: $CMD_MDADM_CONFIG "
; ;
; ;
--no-busybox)
--busybox| -- no-busybox)
CMD_BUSYBOX = 0
CMD_BUSYBOX = ` parse_optbool " $* " `
print_info 2 " CMD_BUSYBOX: ${ CMD_BUSYBOX } "
print_info 2 " CMD_BUSYBOX: ${ CMD_BUSYBOX } "
; ;
; ;
--unionfs)
--unionfs| --no-unionfs)
CMD_UNIONFS = 1
CMD_UNIONFS = ` parse_optbool " $* " `
print_info 2 " CMD_UNIONFS: ${ CMD_UNIONFS } "
print_info 2 " CMD_UNIONFS: ${ CMD_UNIONFS } "
; ;
; ;
--netboot)
--netboot| --no-netboot)
CMD_NETBOOT = 1
CMD_NETBOOT = ` parse_optbool " $* " `
print_info 2 " CMD_NETBOOT: ${ CMD_NETBOOT } "
print_info 2 " CMD_NETBOOT: ${ CMD_NETBOOT } "
; ;
; ;
--real-root= *)
--real-root= *)
CMD_REAL_ROOT = ` parse_opt " $* " `
CMD_REAL_ROOT = ` parse_opt " $* " `
print_info 2 " CMD_REAL_ROOT: ${ CMD_REAL_ROOT } "
print_info 2 " CMD_REAL_ROOT: ${ CMD_REAL_ROOT } "
; ;
; ;
--dmraid)
--dmraid| --no-dmraid)
if [ ! -e /usr/include/libdevmapper.h ]
CMD_DMRAID = ` parse_optbool " $* " `
if [ " $CMD_DMRAID " = "1" -a ! -e /usr/include/libdevmapper.h ]
then
then
echo 'Error: --dmraid requires device-mapper to be installed'
echo 'Error: --dmraid requires device-mapper to be installed'
echo ' on the host system; try "emerge device-mapper".'
echo ' on the host system; try "emerge device-mapper".'
exit 1
exit 1
fi
fi
CMD_DMRAID = 1
print_info 2 " CMD_DMRAID: ${ CMD_DMRAID } "
print_info 2 " CMD_DMRAID: ${ CMD_DMRAID } "
; ;
; ;
--multipath)
--multipath| --no-multipath)
if [ ! -e /usr/include/libdevmapper.h ]
CMD_MULTIPATH = ` parse_optbool " $* " `
if [ " $CMD_MULTIPATH " = "1" -a ! -e /usr/include/libdevmapper.h ]
then
then
echo 'Error: --multipath requires device-mapper to be installed'
echo 'Error: --multipath requires device-mapper to be installed'
echo ' on the host;system; try "emerge device-mapper".'
echo ' on the host;system; try "emerge device-mapper".'
exit 1
exit 1
fi
fi
CMD_MULTIPATH = 1
print_info 2 " CMD_MULTIPATH: ${ CMD_MULTIPATH } "
print_info 2 " CMD_MULTIPATH: ${ CMD_MULTIPATH } "
; ;
; ;
--bootloader= *)
--bootloader= *)
CMD_BOOTLOADER = ` parse_opt " $* " `
CMD_BOOTLOADER = ` parse_opt " $* " `
print_info 2 " CMD_BOOTLOADER: ${ CMD_BOOTLOADER } "
print_info 2 " CMD_BOOTLOADER: ${ CMD_BOOTLOADER } "
; ;
; ;
--iscsi)
--iscsi| --no-iscsi)
CMD_ISCSI = 1
CMD_ISCSI = ` parse_optbool " $* " `
print_info 2 " CMD_ISCSI: ${ CMD_ISCSI } "
print_info 2 " CMD_ISCSI: ${ CMD_ISCSI } "
; ;
; ;
--loglevel= *)
--loglevel= *)
@ -315,41 +333,29 @@ parse_cmdline() {
CMD_MENUCONFIG = 0
CMD_MENUCONFIG = 0
print_info 2 " CMD_MENUCONFIG: ${ CMD_MENUCONFIG } "
print_info 2 " CMD_MENUCONFIG: ${ CMD_MENUCONFIG } "
; ;
; ;
--gconfig)
--gconfig| --no-gconfig)
CMD_GCONFIG = 1
CMD_GCONFIG = ` parse_optbool " $* " `
print_info 2 " CMD_GCONFIG: ${ CMD_GCONFIG } "
print_info 2 " CMD_GCONFIG: ${ CMD_GCONFIG } "
; ;
; ;
--xconfig)
--xconfig| --no-xconfig)
CMD_XCONFIG = 1
CMD_XCONFIG = ` parse_optbool " $* " `
print_info 2 " CMD_XCONFIG: ${ CMD_XCONFIG } "
print_info 2 " CMD_XCONFIG: ${ CMD_XCONFIG } "
; ;
; ;
--save-config)
--save-config| --no-save-config)
CMD_SAVE_CONFIG = 1
CMD_SAVE_CONFIG = ` parse_optbool " $* " `
print_info 2 " CMD_SAVE_CONFIG: ${ CMD_SAVE_CONFIG } "
; ;
--no-save-config)
CMD_SAVE_CONFIG = 0
print_info 2 " CMD_SAVE_CONFIG: ${ CMD_SAVE_CONFIG } "
print_info 2 " CMD_SAVE_CONFIG: ${ CMD_SAVE_CONFIG } "
; ;
; ;
--mrproper)
--mrproper| --no-mrproper)
CMD_MRPROPER = 1
CMD_MRPROPER = ` parse_optbool " $* " `
print_info 2 " CMD_MRPROPER: ${ CMD_MRPROPER } "
print_info 2 " CMD_MRPROPER: ${ CMD_MRPROPER } "
; ;
; ;
--no-mrproper)
--clean| --no-clean)
CMD_MRPROPER = 0
CMD_CLEAN = ` parse_optbool " $* " `
print_info 2 " CMD_MRPROPER: ${ CMD_MRPROPER } "
; ;
--clean)
CMD_CLEAN = 1
print_info 2 " CMD_CLEAN: ${ CMD_CLEAN } "
print_info 2 " CMD_CLEAN: ${ CMD_CLEAN } "
; ;
; ;
--no-clean)
--oldconfig| --no-oldconfig)
CMD_CLEAN = 0
CMD_OLDCONFIG = ` parse_optbool " $* " `
print_info 2 " CMD_CLEAN: ${ CMD_CLEAN } "
[ " $CMD_OLDCONFIG " = "1" ] && CMD_CLEAN = 0
; ;
--oldconfig)
CMD_CLEAN = 0
CMD_OLDCONFIG = 1
print_info 2 " CMD_CLEAN: ${ CMD_CLEAN } "
print_info 2 " CMD_CLEAN: ${ CMD_CLEAN } "
print_info 2 " CMD_OLDCONFIG: ${ CMD_OLDCONFIG } "
print_info 2 " CMD_OLDCONFIG: ${ CMD_OLDCONFIG } "
; ;
; ;
@ -361,8 +367,8 @@ parse_cmdline() {
echo
echo
print_warning 1 "Please use --splash, as --gensplash is deprecated."
print_warning 1 "Please use --splash, as --gensplash is deprecated."
; ;
; ;
--gensplash)
--gensplash| --no-gensplash)
CMD_SPLASH = 1
CMD_SPLASH = ` parse_optbool " $* " `
SPLASH_THEME = 'default'
SPLASH_THEME = 'default'
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
echo
echo
@ -374,15 +380,11 @@ parse_cmdline() {
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
print_info 2 " SPLASH_THEME: ${ SPLASH_THEME } "
print_info 2 " SPLASH_THEME: ${ SPLASH_THEME } "
; ;
; ;
--splash)
--splash| --no-splash)
CMD_SPLASH = 1
CMD_SPLASH = ` parse_optbool " $* " `
SPLASH_THEME = 'default'
SPLASH_THEME = 'default'
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
; ;
; ;
--no-splash)
CMD_SPLASH = 0
print_info 2 " CMD_SPLASH: ${ CMD_SPLASH } "
; ;
--gensplash-res= *)
--gensplash-res= *)
SPLASH_RES = ` parse_opt " $* " `
SPLASH_RES = ` parse_opt " $* " `
print_info 2 " SPLASH_RES: ${ SPLASH_RES } "
print_info 2 " SPLASH_RES: ${ SPLASH_RES } "
@ -393,28 +395,24 @@ parse_cmdline() {
SPLASH_RES = ` parse_opt " $* " `
SPLASH_RES = ` parse_opt " $* " `
print_info 2 " SPLASH_RES: ${ SPLASH_RES } "
print_info 2 " SPLASH_RES: ${ SPLASH_RES } "
; ;
; ;
--install)
--install| --no-install)
CMD_NOINSTALL = 0
CMD_INSTALL = ` parse_optbool " $* " `
print_info 2 " CMD_NOINSTALL: ${ CMD_NOINSTALL } "
print_info 2 " CMD_INSTALL: ${ CMD_INSTALL } "
; ;
--no-install)
CMD_NOINSTALL = 1
print_info 2 " CMD_NOINSTALL: ${ CMD_NOINSTALL } "
; ;
; ;
--no-ramdisk-modules)
--ramdisk-modules| --no-ramdisk-modules)
CMD_ NORAMDISKMODULES= 1
CMD_RAMDISKMODULES = ` parse_optbool " $* " `
print_info 2 " CMD_ NO RAMDISKMODULES: ${ CMD_ NO RAMDISKMODULES} "
print_info 2 " CMD_RAMDISKMODULES: ${ CMD_RAMDISKMODULES } "
; ;
; ;
--all-ramdisk-modules)
--all-ramdisk-modules| --no-all-ramdisk-modules)
CMD_ALLRAMDISKMODULES = 1
CMD_ALLRAMDISKMODULES = ` parse_optbool " $* " `
print_info 2 " CMD_ALLRAMDISKMODULES: ${ CMD_ALLRAMDISKMODULES } "
print_info 2 " CMD_ALLRAMDISKMODULES: ${ CMD_ALLRAMDISKMODULES } "
; ;
; ;
--callback= *)
--callback= *)
CMD_CALLBACK = ` parse_opt " $* " `
CMD_CALLBACK = ` parse_opt " $* " `
print_info 2 " CMD_CALLBACK: ${ CMD_CALLBACK } / $* "
print_info 2 " CMD_CALLBACK: ${ CMD_CALLBACK } / $* "
; ;
; ;
--static)
--static| --no-static)
CMD_STATIC = 1
CMD_STATIC = ` parse_optbool " $* " `
print_info 2 " CMD_STATIC: ${ CMD_STATIC } "
print_info 2 " CMD_STATIC: ${ CMD_STATIC } "
; ;
; ;
--tempdir= *)
--tempdir= *)
@ -423,21 +421,16 @@ parse_cmdline() {
print_info 2 " TMPDIR: ${ TMPDIR } "
print_info 2 " TMPDIR: ${ TMPDIR } "
print_info 2 " TEMP: ${ TEMP } "
print_info 2 " TEMP: ${ TEMP } "
; ;
; ;
--postclear)
--postclear| --no-postclear)
CMD_POSTCLEAR = 1
CMD_POSTCLEAR = ` parse_optbool " $* " `
print_info 2 " CMD_POSTCLEAR: ${ CMD_POSTCLEAR } "
print_info 2 " CMD_POSTCLEAR: ${ CMD_POSTCLEAR } "
; ;
; ;
--arch-override= *)
--arch-override= *)
CMD_ARCHOVERRIDE = ` parse_opt " $* " `
CMD_ARCHOVERRIDE = ` parse_opt " $* " `
print_info 2 " CMD_ARCHOVERRIDE: ${ CMD_ARCHOVERRIDE } "
print_info 2 " CMD_ARCHOVERRIDE: ${ CMD_ARCHOVERRIDE } "
; ;
; ;
--color)
--color| --no-color)
USECOLOR = 1
USECOLOR = ` parse_optbool " $* " `
print_info 2 " USECOLOR: ${ USECOLOR } "
setColorVars
; ;
--no-color)
USECOLOR = 0
print_info 2 " USECOLOR: ${ USECOLOR } "
print_info 2 " USECOLOR: ${ USECOLOR } "
setColorVars
setColorVars
; ;
; ;
@ -479,17 +472,13 @@ parse_cmdline() {
CMD_KERNNAME = ` parse_opt " $* " `
CMD_KERNNAME = ` parse_opt " $* " `
print_info 2 " KERNNAME: ${ CMD_KERNNAME } "
print_info 2 " KERNNAME: ${ CMD_KERNNAME } "
; ;
; ;
--symlink)
--symlink| --no-symlink)
CMD_SYMLINK = 1
CMD_SYMLINK = ` parse_optbool " $* " `
print_info 2 " CMD_SYMLINK: ${ CMD_SYMLINK } "
print_info 2 " CMD_SYMLINK: ${ CMD_SYMLINK } "
; ;
; ;
--no-symlink)
--kernel-sources| --no-kernel-sources)
CMD_SYMLINK = 0
CMD_KERNEL_SOURCES = ` parse_optbool " $* " `
print_info 2 " CMD_SYMLINK: ${ CMD_SYMLINK } "
print_info 2 " CMD_KERNEL_SOURCES: ${ CMD_KERNEL_SOURCES } "
; ;
--no-kernel-sources)
CMD_NO_KERNEL_SOURCES = 1
print_info 2 " CMD_NO_KERNEL_SOURCES: ${ CMD_NO_KERNEL_SOURCES } "
; ;
; ;
--initramfs-overlay= *)
--initramfs-overlay= *)
CMD_INITRAMFS_OVERLAY = ` parse_opt " $* " `
CMD_INITRAMFS_OVERLAY = ` parse_opt " $* " `
@ -510,20 +499,20 @@ parse_cmdline() {
# ENABLE_PEGASOS_HACKS="yes"
# ENABLE_PEGASOS_HACKS="yes"
# print_info 2 "ENABLE_PEGASOS_HACKS: ${ENABLE_PEGASOS_HACKS}"
# print_info 2 "ENABLE_PEGASOS_HACKS: ${ENABLE_PEGASOS_HACKS}"
; ;
; ;
--disklabel)
--disklabel| --no-disklabel)
CMD_DISKLABEL = 1
CMD_DISKLABEL = ` parse_optbool " $* " `
print_info 2 " CMD_DISKLABEL: ${ CMD_DISKLABEL } "
print_info 2 " CMD_DISKLABEL: ${ CMD_DISKLABEL } "
; ;
; ;
--luks)
--luks| --no-luks)
CMD_LUKS = 1
CMD_LUKS = ` parse_optbool " $* " `
print_info 2 " CMD_LUKS: ${ CMD_LUKS } "
print_info 2 " CMD_LUKS: ${ CMD_LUKS } "
; ;
; ;
--gpg)
--gpg| --no-gpg)
CMD_GPG = 1
CMD_GPG = ` parse_optbool " $* " `
print_info 2 " CMD_GPG: ${ CMD_GPG } "
print_info 2 " CMD_GPG: ${ CMD_GPG } "
; ;
; ;
--firmware)
--firmware| --no-firmware)
CMD_FIRMWARE = 1
CMD_FIRMWARE = ` parse_optbool " $* " `
print_info 2 " CMD_FIRMWARE: ${ CMD_FIRMWARE } "
print_info 2 " CMD_FIRMWARE: ${ CMD_FIRMWARE } "
; ;
; ;
--firmware-dir= *)
--firmware-dir= *)
@ -536,8 +525,8 @@ parse_cmdline() {
CMD_FIRMWARE = 1
CMD_FIRMWARE = 1
print_info 2 " CMD_FIRMWARE_FILES: ${ CMD_FIRMWARE_FILES } "
print_info 2 " CMD_FIRMWARE_FILES: ${ CMD_FIRMWARE_FILES } "
; ;
; ;
--integrated-initramfs)
--integrated-initramfs| --no-integrated-initramfs)
CMD_INTEGRATED_INITRAMFS = 1
CMD_INTEGRATED_INITRAMFS = ` parse_optbool " $* " `
print_info 2 " CMD_INTEGRATED_INITRAMFS= ${ CMD_INTEGRATED_INITRAMFS } "
print_info 2 " CMD_INTEGRATED_INITRAMFS= ${ CMD_INTEGRATED_INITRAMFS } "
; ;
; ;
--config= *)
--config= *)
@ -560,8 +549,8 @@ parse_cmdline() {
BUILD_KERNEL = 1
BUILD_KERNEL = 1
BUILD_MODULES = 0
BUILD_MODULES = 0
BUILD_RAMDISK = 1
BUILD_RAMDISK = 1
CMD_ NORAMDISKMODULES= 1
CMD_ RAMDISKMODULES= 0
print_info 2 " CMD_ NO RAMDISKMODULES: ${ CMD_ NO RAMDISKMODULES} "
print_info 2 " CMD_ RAMDISKMODULES: ${ CMD_ RAMDISKMODULES} "
; ;
; ;
--help)
--help)
longusage
longusage