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:44:39 +0000 (21:44 +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 239de81bdf84abb2c7dd0c7876dd71daf20b96c2..59f1abe93b8bf2e8822b0d6ef21538d03c728ab6 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 ]