commit:     3265be70d78e20e385f98e7aad651f4a4a68ee3b
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 15 05:43:26 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Mon Feb 15 05:51:54 2021 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=3265be70

initrd.scripts: openLUKS(): validate argument

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 4 ++++
 1 file changed, 4 insertions(+)

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}"

Reply via email to