From cbb603f95b9fda86d99737c2b3bfd39f9519383e Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 29 Jan 2020 21:51:19 +0100 Subject: [PATCH] wip --- entry.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entry.sh b/entry.sh index 305fe1e..9d6f1c1 100755 --- a/entry.sh +++ b/entry.sh @@ -16,6 +16,10 @@ function first_stage(){ apt install -y debootstrap cryptsetup btrfs-progs lvm2 + if [ -d /dev/vg0 ]; then + vgchange -an /dev/vg0 + fi + if [ -b /dev/mapper/cryptlvm ]; then cryptsetup luksClose cryptlvm fi