1
0

Unmounting the drive and turning off swap if existing.

This commit is contained in:
cronyakatsuki 2022-11-03 14:36:48 +01:00
parent a73ebea42f
commit bb5e8e7063

View File

@ -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