aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-02-15 06:43:26 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-02-15 06:51:54 +0100
commit3265be70d78e20e385f98e7aad651f4a4a68ee3b (patch)
tree44e77e4db3bea1a8581e126b15aab7ae50aaf73d
parentlinuxrc: load btrfs module manually (diff)
downloadgenkernel-3265be70d78e20e385f98e7aad651f4a4a68ee3b.tar.gz
genkernel-3265be70d78e20e385f98e7aad651f4a4a68ee3b.tar.bz2
genkernel-3265be70d78e20e385f98e7aad651f4a4a68ee3b.zip
initrd.scripts: openLUKS(): validate argument
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rw-r--r--defaults/initrd.scripts4
1 files changed, 4 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index 5d744ee..2fcc593 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1767,6 +1767,10 @@ openLUKS() {
swap)
local TYPE=SWAP
;;
+ *)
+ bad_msg "OpenLUKS(): Unknown type '${1}' specified!"
+ exit 1
+ ;;
esac
local LUKS_NAME="${1}"