From bb5e8e706314511b94d25342dac83a818c3b1788 Mon Sep 17 00:00:00 2001 From: cronyakatsuki <64900606+cronyakatsuki@users.noreply.github.com> Date: Thu, 3 Nov 2022 14:36:48 +0100 Subject: [PATCH] Unmounting the drive and turning off swap if existing. --- arch_install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch_install.sh b/arch_install.sh index 62e9151..c0cf302 100755 --- a/arch_install.sh +++ b/arch_install.sh @@ -103,6 +103,16 @@ sed '1,/^#part2$/d' `basename $0` > /mnt/arch_install2.sh chmod +x /mnt/arch_install2.sh arch-chroot /mnt ./arch_install2.sh rm -rf /mnt/arch_install2.sh + +echo "Unmounting everything" +umount -R /mnt + +if [[ ! -z ${swappartition+x} ]]; then + echo "Unmouning swap partition" +swapoff $swappartition +fi + + exit #part2