initramfs-live-install: Reboot on panic after 60 seconds

Reboot the machine after a panic.

Related: SYS#1151
This commit is contained in:
Holger Hans Peter Freyther 2015-02-14 22:00:08 +01:00
parent 08d1155752
commit a15ce6544e
2 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,7 @@ if [ -f /etc/grub.d/40_custom ] ; then
sed -i "s/__VIDEO_MODE__/$kernel_cmdline_video_mode/g" $GRUBCFG
sed -i "s/__VGA_MODE__/$kernel_cmdline_vga_mode/g" $GRUBCFG
sed -i "s/__CONSOLE__/$kernel_cmdline_console/g" $GRUBCFG
sed -i "s/quiet/net.ifnames=0 quiet/g" $GRUBCFG
sed -i "s/quiet/net.ifnames=0 panic=60 quiet/g" $GRUBCFG
sed -i "s/rw/ro/g" $GRUBCFG
sed -i "/#/d" $GRUBCFG
sed -i "/exec tail/d" $GRUBCFG

View File

@ -1,4 +1,6 @@
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
PRINC = "1"
RDEPENDS_${PN} += "e2fsprogs-e2fsck"