From eec459d0c3a1d463a5385a5d3ca8feabe62d3f55 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 22 Mar 2020 14:52:57 +0100 Subject: Avoid Mounting of efi Partition with fstab --- stages/first_stage.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'stages/first_stage.sh') 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 -- cgit v1.2.3-70-g09d2