- Timestamp:
- Feb 22, 2016, 1:36:08 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3517 r3518 1819 1819 elif [ "$type" = "grub" ]; then 1820 1820 echo -en "pause Press a key when ready to restore\n" 1821 elif [ "$type" = "grub2" ]; then 1822 echo -en "set " 1821 1823 else 1822 1824 echo -en "prompt 1\ndisplay message.txt\nF1 message.txt\nF2 boot1.txt\nF3 boot2.txt\nF4 pxe.txt\n" … … 1856 1858 1857 1859 # Handle timeout 1860 if [ "$type" = "grub" ]; then 1861 sep='=' 1862 fi 1858 1863 if [ "$CDRECOVERY" != "yes" ] ; then 1859 1864 echo -en "timeout${sep}${MINDI_BOOT_TIMEOUT}\n" … … 1882 1887 elif [ "$type" = "grub" ]; then 1883 1888 outstr="title $i\n\tkernel /vmlinuz root=/dev/ram0 rw ramdisk_size=$ramdisk_size ${ooo} $MINDI_ADDITIONAL_BOOT_PARAMS\n\tinitrd=/initrd.img\n" 1889 elif [ "$type" = "grub2" ]; then 1890 outstr="menuentry '$i' {\n\tinsmod all_video\n\tinsmod gzio\n\tinsmod part_msdos\n\tinsmod part_gpt\n\tinsmod ext2\n\tinsmod xfs\n\techo 'Loading kernel...'\n\tlinux /vmlinuz root=/dev/ram0 rw ramdisk_size=$ramdisk_size ${ooo} $MINDI_ADDITIONAL_BOOT_PARAMS\n\techo 'Loading ramdisk...'\n\tinitrd /initrd.img\n}\n" 1884 1891 else 1885 1892 ps="/" … … 1898 1905 elif [ "$type" = "grub" ]; then 1899 1906 echo -en "title memtest\n\tkernel /memtest.efi\n\tinitrd=/memtest.img\n" 1907 elif [ "$type" = "grub2" ]; then 1908 echo -en "menuentry 'memtest' {\n\tload_video\n\tinsmod gzio\n\tinsmod part_msdos\n\tinsmod xfs\n\tlinux /memtest\n\tinitrd /memtest.img\n}\n" 1900 1909 else 1901 1910 ps="/" … … 2179 2188 bootbin=`find /boot/efi -iname "grub*.efi" | head -1` 2180 2189 bootconf="$efidir/grub.conf" 2190 boottype=grub2 2191 elif [ $dname = "debian" ] && [ $dver = "8" ]; then 2192 bootbin=`find /boot/efi -iname "grub*.efi" | head -1` 2193 bootconf="$efidir/grub.cfg" 2181 2194 boottype=grub2 2182 2195 else … … 3238 3251 mr-read-all-link $2 3239 3252 MindiExit $? 3253 elif [ "$1" = "--makebcf" ] ; then 3254 [ ! "$2" ] && Die "Please specify the boot mode to check (BIOS,UEFI, EFI)" 3255 MakeBootConfFile $2 3240 3256 elif [ "$1" = "--makemessage" ] ; then 3241 3257 MakeMessageFile | cut -c1-80
Note:
See TracChangeset
for help on using the changeset viewer.