[Buildroot] grub.cfg "set fallback=XXX"

Peter Korsgaard peter at korsgaard.com
Sat Oct 26 05:38:12 UTC 2019


>>>>> "Eldor" == Eldor Rødseth <er at systemsoft.no> writes:

 > Hi! 
 > I have the following content in my buildroot/busybox/grub2-based EFI system grub.cfg-file: 


 > -------------------------------- start -------------------------
 > set default=rootfs2 
 > set fallback=rootfs1 
 > set timeout=5 

 > menuentry "Alternating SW Image (rootfs) 1 - Linux 4.20.8 root at sda2" --id rootfs1 { 
 >         linux /bzImage root=/dev/sda2 quiet loglevel=4 console=ttyS0,115200n8 id=rootfs1 
 > } 

 > menuentry "Alternating SW Image (rootfs) 2 - Linux 4.20.8 root at sda3" --id rootfs2 { 
 >         linux /bzImage root=/dev/sda3 quiet loglevel=4 console=ttyS0,115200n8 id=rootfs2 
 > } 

 > menuentry "USB Installation Disk - Linux 4.20.8 root at sdb2" --id usb { 
 >         linux /bzImage root=/dev/sdb2 rootwait quiet loglevel=4 console=ttyS0,115200n8 id=usb 
 > } 

 > -------------------------------- end -------------------------


 > Now; my problem is that even if I completely wipe-out the /dev/sda3
 > (i.e. --id rootfs2) to force a fallback to /dev/sda2 (i.e. --id
 > rootfs1) the grub2 boot loader persistently only tries to boot from
 > the corrupted entry (i.e. rootfs2). So ... what am I doing wrong ... ?

Sorry, don't know. Perhaps you will have more luck on the help-grub
list?

https://lists.gnu.org/mailman/listinfo/help-grub
 
-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list