GPG command-line handling
authordacook <schism@subverted.org>
Thu, 17 Dec 2009 16:00:14 +0000 (09:00 -0700)
committerdacook <schism@subverted.org>
Tue, 11 Jan 2011 19:20:27 +0000 (12:20 -0700)
Allow user to specify '--gpg' as an argument to genkernel and trigger the
inclusion of PGP-armored LUKS key support.

gen_cmdline.sh

index 3dcb65d10d4dc13e40b8f9a74097e1a324f69d2d..1bf5de3c080b1e00ad49a2777906c98ba3a37072 100755 (executable)
@@ -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}"