From: dacook Date: Thu, 17 Dec 2009 16:00:14 +0000 (-0700) Subject: GPG command-line handling X-Git-Tag: v3.4.11~28^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=535f2950bfcd15608702055438d3f1b8c2f60478;p=genkernel.git GPG command-line handling Allow user to specify '--gpg' as an argument to genkernel and trigger the inclusion of PGP-armored LUKS key support. --- diff --git a/gen_cmdline.sh b/gen_cmdline.sh index 3dcb65d..1bf5de3 100755 --- a/gen_cmdline.sh +++ b/gen_cmdline.sh @@ -97,6 +97,7 @@ longusage() { echo " ramdisk" echo " --luks Include LUKS support" echo " --> 'emerge cryptsetup-luks' with USE=-dynamic" + echo " --gpg Include GPG-armored LUKS key support" 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" @@ -524,6 +525,10 @@ parse_cmdline() { CMD_LUKS=1 print_info 2 "CMD_LUKS: ${CMD_LUKS}" ;; + --gpg) + CMD_GPG=1 + print_info 2 "CMD_GPG: ${CMD_GPG}" + ;; --firmware) CMD_FIRMWARE=1 print_info 2 "CMD_FIRMWARE: ${CMD_FIRMWARE}"