Browse Source

fix some efi stuff

Noah Vogt 1 year ago
parent
commit
5bdea820a0
2 changed files with 5 additions and 3 deletions
  1. 2 2
      arch.sh
  2. 3 1
      chroot.sh

+ 2 - 2
arch.sh

@@ -32,12 +32,12 @@ p
 
 
 
-a
+p
 w
 EOF
 partprobe
 
-mkfs.vfat -F32 /dev/"${DRIVE}${PVALUE}"1
+mkfs.fat -F32 /dev/"${DRIVE}${PVALUE}"1
 yes | mkfs.ext4 /dev/"${DRIVE}${PVALUE}"2
 mount /dev/"${DRIVE}${PVALUE}"2 /mnt
 

+ 3 - 1
chroot.sh

@@ -21,11 +21,13 @@ locale-gen
 
 systemctl enable NetworkManager
 
+mkdir -p /efi
 mount /dev/"$DRIVE"1 /efi
+mkdir -p /efi/EFI/Linux
 test -d /efi/EFI || error_exit "Error: EFI partition could not be mounted correctly."
 
 echo "loglevel=0 quiet udev.log_level=3" > /etc/kernel/cmdline
-chmod /etc/kernel/cmdline
+chmod +w /etc/kernel/cmdline
 
 sb_status="$(sbctl status)"
 echo "$sb_status" | grep "^Setup Mode:" | grep -q "Enabled" || error_exit "Error: Secure Boot not in Setup Mode. Please chane UEFI settings."