From bffea892e6280e45278ecf7dc15d77665a1f025e Mon Sep 17 00:00:00 2001 From: Tobias Strobel Date: Sun, 11 Sep 2022 20:22:01 +0200 Subject: [PATCH] Move prepare mount steps to beginning --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 7479320..f084bb5 100644 --- a/install.sh +++ b/install.sh @@ -31,6 +31,11 @@ exec 2> >(tee "stderr.log" >&2) export SNAP_PAC_SKIP=y +umount -R /mnt 2> /dev/null || true +swapoff --all +cryptsetup close swap 2> /dev/null || true +cryptsetup luksClose system 2> /dev/null || true + # Dialog BACKTITLE="Arch Linux installation" @@ -114,11 +119,6 @@ echo -e "\n### Setting up fastest mirrors" reflector --country 'Germany,France' --protocol https --sort rate --latest 5 --save /etc/pacman.d/mirrorlist echo -e "\n### Setting up partitions" -umount -R /mnt 2> /dev/null || true -swapoff --all -cryptsetup close swap 2> /dev/null || true -cryptsetup luksClose luks 2> /dev/null || true - sgdisk --zap-all "${device}" sgdisk --clear \ --new=1:0:+550MiB --typecode=1:ef00 --change-name=1:EFI \