Move prepare mount steps to beginning
This commit is contained in:
parent
86da245a12
commit
bffea892e6
1 changed files with 5 additions and 5 deletions
10
install.sh
10
install.sh
|
@ -31,6 +31,11 @@ exec 2> >(tee "stderr.log" >&2)
|
||||||
|
|
||||||
export SNAP_PAC_SKIP=y
|
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
|
# Dialog
|
||||||
BACKTITLE="Arch Linux installation"
|
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
|
reflector --country 'Germany,France' --protocol https --sort rate --latest 5 --save /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
echo -e "\n### Setting up partitions"
|
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 --zap-all "${device}"
|
||||||
sgdisk --clear \
|
sgdisk --clear \
|
||||||
--new=1:0:+550MiB --typecode=1:ef00 --change-name=1:EFI \
|
--new=1:0:+550MiB --typecode=1:ef00 --change-name=1:EFI \
|
||||||
|
|
Loading…
Reference in a new issue