OSDN Git Service

1-install: allow to customize grub menu.lst
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 26 Apr 2012 16:42:14 +0000 (00:42 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 27 Apr 2012 17:52:43 +0000 (01:52 +0800)
install/scripts/1-install

index a15113e..b4f879f 100644 (file)
@@ -93,7 +93,7 @@ create_menulst()
 {
        menulst=/hd/grub/menu.lst
        [ -n "$VESA" ] && vga=" vga=788 modeset=0"
-       echo -e "default=0\ntimeout=6\nroot (hd0,$1)\nsplashimage=/grub/android-x86.xpm.gz\n" > $menulst
+       echo -e "${GRUB_OPTIONS:-default=0\ntimeout=6\nsplashimage=/grub/android-x86.xpm.gz\n}root (hd0,$1)\n" > $menulst
        cmdline=`cat /proc/cmdline | sed "s|\(initrd.*img\s*\)||; s|quiet\s*||; s|\(vga=\w\+\?\s*\)||; s|\(DPI=\w\+\?\s*\)||; s|\(INSTALL=\w\+\?\s*\)||; s|\(SRC=\S\+\?\s*\)||; s|\(DEBUG=\w\+\?\s*\)||; s|\(BOOT_IMAGE.*\)||"`
 
        create_entry "Android-x86 $VER" quiet $cmdline