[Caution] Grub Update may result in Un-Bootable RebornOS

Dear Community,

A recent GRUB update from Arch Linux may require you to perform some manual steps after updating your RebornOS (but before rebooting), so that your computer does not become un-bootable.

If you are planning to update your system (like by running sudo pacman -Syu), please follow the below steps after updating (but before rebooting):

1. Check if you are booted in UEFI or Legacy mode

If you are booted in UEFI mode, when you run the command ls -ld /sys/firmware/efi, you will see an output like

$ ls -ld /sys/firmware/efi
drwxr-xr-x 5 root root 0 Dec 10 09:52 /sys/firmware/efi/

If you are booted in Legacy mode, when you run the command ls -ld /sys/firmware/efi, you will see an output like

$ ls -ld /sys/firmware/efi
ls: cannot access /sys/firmware/efi: No such file or directory

2. Re-Install GRUB

Based on whether you are booted in UEFI or Legacy mode, you can run the below

UEFI mode

sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=RebornOS --recheck

Legacy mode

sudo grub-install --target=i386-pc --bootloader-id=RebornOS --recheck

3. Recreate GRUB Configuration

sudo grub-mkconfig -o /boot/grub/grub.cfg

4. Assess Reboot Safety

If the above grub-install and grub-mkconfig steps run successfully, it is safe to reboot!

2 Likes