[OpenWrt-Devel] Openwrt x86_64 grub2 fallback feature

Alex Nikitenko alexzoidbergnikitenko at gmail.com
Tue Oct 7 11:27:20 EDT 2014


Hello.

I was trying to bring up GRUB fallback feature on x86_64 based OpenWRT
build.
I used this article as a reference.
http://www.linuxscrew.com/2012/04/24/grub-fallback-boot-good-kernel-if-new-one-crashes/
It's for Fedora, but I hope, that I can do something similar for openwrt.

Here's my config:

serial --unit=0 --speed=38400 --word=8 --parity=no --stop=1
terminal_input console serial; terminal_output console serial


set default="saved"
set timeout="5"
set root='(hd0,msdos1)'
set fallback="0 1"

menuentry "OpenWrt" {
        linux /boot/vmlinuz root=/dev/sda2 rootfstype=ext4 rootwait
console=tty0 console=ttyS0,38400n8 noinitrd
        savedefault fallback
}

menuentry "OpenWrt-backup" {
        linux /boot/vmlinuz-backup root=/dev/sda3 rootfstype=ext4 rootwait
console=tty0 console=ttyS0,38400n8 noinitrd
        savedefault fallback
}

menuentry "OpenWrt (failsafe)" {
        linux /boot/vmlinuz failsafe=true root=/dev/sda2 rootfstype=ext4
rootwait console=tty0 console=ttyS0,38400n8 noinitrd
}

But, when I try to boot  openwrt with this config I get message, that
command is not recognized.

Booting `OpenWrt'
error: can't find command `savedefault'.
Press any key to continue...

Can I reconfigure a grub somehow in order to have this feature?

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141007/978b0edd/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list