Bladeren bron

Reorder bootctl install

Viktor Grahn 1 jaar geleden
bovenliggende
commit
4c12bad540
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      archInstall.sh

+ 3 - 3
archInstall.sh

@@ -174,6 +174,9 @@ function chrootStep {
   systemctl enable NetworkManager >&2 || exit $?
   systemctl start NetworkManager >&2 || exit $?
 
+  printf "Install bootloader (systemd-boot)\n" | tee -a $LOGFILE
+  bootctl install
+
   printf "Add decryption kernel options for UKI images\n" | tee -a $LOGFILE
   LUKSUUID=$(blkid | grep "${ROOTPART}" | sed -E 's/^.*\bUUID\b="(\S+)".*$/\1/') || exit $?
   mkdir -p /etc/cmdline.d >&2 || exit $?
@@ -190,9 +193,6 @@ function chrootStep {
   printf "Rebuild kernel\n" | tee -a $LOGFILE
   mkinitcpio -p linux 2>&1 || exit $?
 
-  printf "Install bootloader (systemd-boot)\n" | tee -a $LOGFILE
-  bootctl install
-  
   printf "Exiting chroot\n" | tee -a $LOGFILE
   exit
 }