boot from local hd if no response to boot menu
authorWilliam Hubbs <williamh@gentoo.org>
Sun, 19 Jun 2011 18:15:35 +0000 (13:15 -0500)
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
Sat, 25 Jun 2011 21:42:45 +0000 (21:42 +0000)
x-gentoo-bug: 141199
x-gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=141199
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>
targets/support/bootloader-setup.sh

index ffd6794fa17f7ceaadb186d4ed241a2ba97782e1..6f39196cd1c4a11b1896b77064cb313336d79b55 100644 (file)
@@ -257,6 +257,7 @@ case ${clst_hostarch} in
                        kmsg=$1/isolinux/kernels.msg
                        echo "default ${first}" > ${icfg}
                        echo "timeout 150" >> ${icfg}
+                       echo "ontimeout localhost" >> ${icfg}
                        echo "prompt 1" >> ${icfg}
                        echo "display boot.msg" >> ${icfg}
                        echo "F1 kernels.msg" >> ${icfg}
@@ -319,6 +320,10 @@ case ${clst_hostarch} in
                                echo "label memtest86" >> $icfg
                                echo "  kernel memtest86" >> $icfg
                        fi
+                       echo >> $icfg
+                       echo "label localhost" >> $icfg
+                       echo "  localboot -1" >> $icfg
+                       echo "  MENU HIDE" >> $icfg
                fi
 
                if [ -e $1/boot/efi/elilo.efi ]