autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 41a2b6e78fef062764d234c84f7601861dead00f
parent 2ec053fb0aba263e0b1ac0d526d7beb95d8f77af
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Wed, 12 Aug 2020 03:19:15 +0200

die if cryptokey needed to unlock disk contains LF char

Diffstat:
Minstall.sh | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/install.sh b/install.sh @@ -162,6 +162,9 @@ then keyfile="$SOURCE/$mapped_dev.key" test -f "$keyfile" || die "keyfile ($keyfile) is not a file" + + test $(wc -l "$keyfile"|cut -f1 -d' ') -eq 0 || + die "keyfile contains LF characters, bad idea" else keyfile="$SOURCE/root/$keyfile" fi