[Voyage-linux] Alix 3d2 rescue system
Adrian Reyer
(spam-protected)
Tue Dec 13 00:49:54 HKT 2011
On Mon, Dec 12, 2011 at 11:15:57AM +0100, Ernesto Sanchez wrote:
> Now i've this grub menu.lst:
> timeout 15
> fallback 1
> default 0
>
> title USB restore
> root (hd0,0)
> kernel /boot/boot-usb/vmlinuz-2.6.38-voyage root=/dev/sda1
> console=ttyS0,38400n8
> initrd /boot/boot-usb/initrd.img-2.6.38-voyage
>
> title voyage-linux-15Apr10
> root (hd0,0)
> kernel /vmlinuz root=LABEL=ROOT_FS console=ttyS0,38400n8
> initrd /initrd.img
>
> Unfortunately when you boot without the presence of the usb, starts
> a minimum shell, I think if at that point could generate a kernel
> panic would restart and grub would start the fallback.
> What do you think?
The minimum shell you should be able to prevent by setting
BUSYBOX=n
in /etc/initramfs-tools/initramfs.conf
Then recreate the initrd e.g. with 'update-initramfs -k all -u'.
dd 'panic=30' or similar to the kernel command line to get it to reboot
on kernel panic after 30 seconds.
However, I doubt this will boot the fallback entry as the initial kernel
+ initrd actually boots as seen by grub. It only fails afterwards. Test
it and tell us if it works as hoped for.
If it doesn't work, it might be possible using grub2 and its scripting
to enable booting the system from usb as soon as it detects a usb drive.
Regards,
Adrian
--
LiHAS - Adrian Reyer - Hessenwiesenstraße 10 - D-70565 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91
Mail: lihas at lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
More information about the Voyage-linux
mailing list