From 19dd942521281d29188b8ef8302172bc8dc636a6 Mon Sep 17 00:00:00 2001 From: jedi Date: Fri, 31 Jan 2020 12:00:17 +0100 Subject: [PATCH] wip --- entry.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/entry.sh b/entry.sh index 7faf23e..484ff88 100755 --- a/entry.sh +++ b/entry.sh @@ -20,7 +20,9 @@ function first_stage(){ mount | grep target | awk '{print $3}'| sort -r | while read LINE; do umount -l $LINE; done - swapoff /dev/vg0/swap || true + if [ -b /dev/vg0/swap ]; then + swapoff /dev/vg0/swap || true + fi vgchange -an /dev/vg0 fi @@ -93,7 +95,7 @@ function second_stage(){ mkdir /snap btrfs subvolume snapshot / /snap/$(date +%Y-%m-%d_basesystem) apt install -y task-mate-desktop mate-desktop-environment-extra - + adduser jedi } function post_install_stage(){