From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 01FCE1382C5 for ; Mon, 15 Feb 2021 06:01:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 342D5E0B19; Mon, 15 Feb 2021 06:01:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0DC3DE0B0E for ; Mon, 15 Feb 2021 06:01:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ECEA1340C57 for ; Mon, 15 Feb 2021 06:01:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 369EA4C7 for ; Mon, 15 Feb 2021 06:01:19 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1613368314.3265be70d78e20e385f98e7aad651f4a4a68ee3b.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts X-VCS-Directories: defaults/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 3265be70d78e20e385f98e7aad651f4a4a68ee3b X-VCS-Branch: master Date: Mon, 15 Feb 2021 06:01:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1d75db17-861b-4733-b5a5-26df6f046e84 X-Archives-Hash: a81f6bfbe6fbefebb00542ae71418150 commit: 3265be70d78e20e385f98e7aad651f4a4a68ee3b Author: Thomas Deutschmann gentoo org> AuthorDate: Mon Feb 15 05:43:26 2021 +0000 Commit: Thomas Deutschmann gentoo 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 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}"