Saving last boot choice error

Enabling "saving last boot choice" in garuda boot options doesn't work for me (it won't save the last boot option), and after each boot i get this grub error: "Sparse file is not allowed"

Welcome

Hi,
The reason is the grub.env which is on a filesystem not writable by grub and Garuda grub config defaults to writing the selected entry to grub.env. To work around it edit your /etc/default/grub and change from

GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved

To

GRUB_SAVEDEFAULT=false
GRUB_DEFAULT=0

rebuild grub config

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

Depending on your requirements you may need to change other settings as well.

(Found on other distros forums :wink:)

May be you will find many other useful Answers on Google.

3 Likes