Created
June 29, 2023 22:48
-
-
Save shaunhey/d804129bc44bb2a077f96a07163ffa8b to your computer and use it in GitHub Desktop.
Script to recreate Arch Linux EFI boot entries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Delete the existing entries | |
#sudo efibootmgr --unicode -B -b 0001 | |
sudo efibootmgr --unicode -B -b 0000 | |
# Create the new entries | |
sudo efibootmgr -c \ | |
--label "Arch Linux" \ | |
--loader /vmlinuz-linux \ | |
--unicode 'root=LABEL=root rw quiet loglevel=0 rd.udev.log_level=0 initrd=\intel-ucode.img initrd=\initramfs-linux.img' | |
#sudo efibootmgr -c \ | |
# --label "Arch Linux Zen" \ | |
# --loader /vmlinuz-linux-zen \ | |
# --unicode 'root=LABEL=root rw quiet loglevel=0 rd.udev.log_level=0 initrd=\intel-ucode.img initrd=\initramfs-linux-zen.img' | |
# Ensure the correct boot order | |
#sudo efibootmgr --unicode -o 0000,0001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment