(OK) [android-x86-6.0-rc1] grub - set timeout=5

来源:互联网 发布:图画软件下载 编辑:程序博客网 时间:2024/05/18 23:12


[root@localhost android-x86-6.0-rc1]# gedit bootable/newinstaller/install/scripts/1-install



    echo -e "${GRUB_OPTIONS:-default=0\ntimeout=6\nsplashimage=/grub/android-x86.xpm.gz\n}root (hd0,$1)\n" > $menulst


        cp -af /grub2/efi /hd
        mkdir -p /hd/boot/grub
        grubcfg=/hd/boot/grub/grub.cfg
        echo -e "set timeout=5\n\n" > $grubcfg
        echo -e "menuentry \"Android-x86 $VER\" {\n\tsearch --set=root --file /$asrc/kernel\n\tlinux /$asrc/kernel quiet $cmdline \n\tinitrd /$asrc/initrd.img\n}" >> $grubcfg
        echo -e "menuentry \"Android-x86 $VER (DEBUG mode)\" {\n\tsearch --set=root --file /$asrc/kernel\n\tlinux /$asrc/kernel $cmdline DEBUG=2\n\tinitrd /$asrc/initrd.img\n}" >> $grubcfg
        if [ -e /hd/EFI/Microsoft/Boot/bootmgfw.efi ]; then
            echo -e "menuentry \"Windows (UEFI)\" {\n\tsearch --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi\n\tchainloader /EFI/Microsoft/Boot/bootmgfw.efi\n}" >> $grubcfg
        fi
        mountpoint -q /hd && umount /hd
        try_mount rw /dev/$1 /hd


0 0
原创粉丝点击