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(){