# HG changeset patch # User Pascal Bellard # Date 1293211915 -3600 # Node ID d57dbb91c2c5f55c3a70b0f18a17056179623691 # Parent c3596312e06a55b9b6da6a6c3c7df1e0b7850001 grub4dos: add preset menu diff -r c3596312e06a -r d57dbb91c2c5 grub4dos/receipt --- a/grub4dos/receipt Fri Dec 24 11:47:32 2010 +0000 +++ b/grub4dos/receipt Fri Dec 24 18:31:55 2010 +0100 @@ -20,6 +20,7 @@ touch $(basename $i) done sh ./configure --prefix=/usr --infodir=/usr/share/info \ + --enable-preset-menu=../stuff/menu.lst \ --without-curses --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && diff -r c3596312e06a -r d57dbb91c2c5 grub4dos/stuff/menu.lst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/grub4dos/stuff/menu.lst Fri Dec 24 18:31:55 2010 +0100 @@ -0,0 +1,42 @@ +pxe detect +configfile +default 0 +timeout 1 +color yellow/brown light-green/black + +title Grub menu + errorcheck off + find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst + find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst + find --set-root --ignore-floppies --ignore-cd /boot/menu.lst && configfile /boot/menu.lst + find --set-root --ignore-floppies --ignore-cd /menu.lst + errorcheck on + configfile /menu.lst + +title Windows NT/2K/XP + find --set-root --ignore-floppies /ntldr + chainloader /ntldr + +title Windows Vista + find --set-root --ignore-floppies /bootmgr + chainloader /bootmgr + tpm --init + +title Windows 9x + find --set-root --ignore-floppies /io.sys + chainloader /io.sys + +title Windows recovery console + find --set-root --ignore-floppies /cmldr + chainloader /cmldr + write 0x7C03 0x63646D63 + write 0x7C07 0x00736E6F + +title Grub prompt + commandline + +title Reboot + reboot + +title Halt + halt