From ee3c15829da4617b68e420aced8f2553ce1d8a2a Mon Sep 17 00:00:00 2001 From: phga Date: Fri, 11 Mar 2022 20:42:56 +0100 Subject: [PATCH] fix: accept intentional error while overwriting disk --- bootstrap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index 70b243b..a6400f1 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -37,9 +37,11 @@ init() { } crypt_prepare_disk() { + set +e cryptsetup open --type plain -d /dev/urandom $1 wipe_me dd if=/dev/zero of=/dev/mapper/wipe_me bs=1M status=progress cryptsetup close wipe_me + set -e } crypt_create_fs() {