c0psrul3

Fix EFI stub errors when booting with systemd-boot

Apr 2nd, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Antergos / Archlinux EFI fix

  • commands to remember

    • # mkinitcpio -p linux
      # bootctl --path=/boot install
    • lsblk -f
      parted -l
    • You can use the live environment to chroot into your installation. Then you can try regenerating your initramfs and grub configs.
      # Install arch-install-scripts
      pacman -S arch-install-scripts
      # Mount Antergos Root
      mount /dev/sdxX /mnt
      # Mount EFI
      mount /dev/sdxX /mnt/boot
      # Chroot into your installed root
      arch-chroot /mnt 
      # Generate kernel/initramfs images
      mkinitcpio -p linux
      # Generate grub config
      grub-mkconfig -o /boot/grub/grub.cfg
      # Exit Chroot
      exit
      # Unmount partitions
      umount -R /mnt
      # Cross your fingers and reboot ;-)
      reboot
  • References:

    • EFI stub: ERROR: failed to read file. I can't boot!
      [[https://bbs.archlinux.org/viewtopic.php?pid=1514912#p1514912]]
    • Installation >> dual boot doesn't work [SOLVED]
      [[https://bbs.archlinux.org/viewtopic.php?id=202634]]
    • Enabling Intel microcode updates
      [[https://wiki.archlinux.org/index.php/Microcode#Enabling_Intel_microcode_updates]]
    • Getting efi error when booting [solved]
      [[https://forum.antergos.com/topic/2198/getting-efi-error-when-booting-solved/4]]
  • Microcode updates for UEFI:
    [[https://wiki.archlinux.org/index.php/Microcode#Enabling_Intel_microcode_updates]]

    • systemd-boot
      Use the initrd option to load the microcode, before the initial ramdisk, as follows:
      
      /boot/loader/entries/entry.conf

title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img


    The latest microcode intel-ucode.img must be available at boot time in your EFI System Partition (ESP). The ESP must be mounted as /boot in order to have the microcode updated every time intel-ucode is updated. Otherwise, copy /boot/intel-ucode.img to your ESP at every update of intel-ucode. 

Further reading
---------------
+ efibootmgr  [[https://linux.die.net/man/8/efibootmgr]]
Add Comment
Please, Sign In to add comment