summaryrefslogtreecommitdiff
path: root/stages/first_stage.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-03-22 14:52:57 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-03-22 14:52:57 +0100
commiteec459d0c3a1d463a5385a5d3ca8feabe62d3f55 (patch)
treebb527322bce97888349a4de7dbf4e32a0509ae28 /stages/first_stage.sh
parent7ded855129bb3937f3059c1c9a0c46c931d8e6c3 (diff)
downloadarchinstall-eec459d0c3a1d463a5385a5d3ca8feabe62d3f55.tar
archinstall-eec459d0c3a1d463a5385a5d3ca8feabe62d3f55.tar.zst
archinstall-eec459d0c3a1d463a5385a5d3ca8feabe62d3f55.zip
Avoid Mounting of efi Partition with fstab
Diffstat (limited to 'stages/first_stage.sh')
-rw-r--r--stages/first_stage.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh
index b72c19d..0ba2e81 100644
--- a/stages/first_stage.sh
+++ b/stages/first_stage.sh
@@ -114,7 +114,7 @@ if [ "$luks_encryption" == "no" ];then
mkfs.fat -F32 ${path_to_disk}1
fatlabel ${path_to_disk}1 "efi"
mkdir /mnt/mnt
- mount ${path_to_disk}1 /mnt/mnt
+ # do not mount here because of /etc/fstab generation
fi
@@ -158,7 +158,7 @@ elif [ "$luks_encryption" == "yes" ];then
mkfs.fat -F32 ${path_to_disk}1
fatlabel ${path_to_disk}1 "efi"
mkdir /mnt/mnt
- mount ${path_to_disk}1 /mnt/mnt
+ # do not mount here because of /etc/fstab generation
fi
@@ -187,3 +187,12 @@ print_ok "Installed packages"
print_ok "Generating /etc/fstab ..."
genfstab -U /mnt >> /mnt/etc/fstab
print_ok "/etc/fstab generated"
+
+
+# mount efi partition after generation of /etc/fstab
+
+if [ "$boot_mode" == "uefi" ];then
+ print_ok "Mounting efi partition after generation of /etc/fstab ..."
+ mount ${path_to_disk}1 /mnt/mnt
+ print_ok "Mounting efi partition after generation of /etc/fstab done"
+fi