|
说给你听吧,其实UEFI固件里无shell是新的固件,比有shell的还方便,直接用grub2启动就行了。如果你确实纠结于shell启动的话,而你的UEFI固件又是64位的话,你找一个shellX64.efi,放到EFI目录里的boot目录里,将shellX64.efi改名为bootX64.efi, 然后在分区根目录创建startup.nsh自动运行文件。假若你想搜索并自动运行CDlinux目录里的boot.efi,startup.nsh里的语法如下:
echo -off
if exist fs0:\CDlinux\boot.efi then
set test "fs0:"
endif
if exist fs1:\CDlinux\boot.efi then
set test "fs1:"
endif
if exist fs2:\CDlinux\boot.efi then
set test "fs2:"
endif
if exist fs3:\CDlinux\boot.efi then
set test "fs3:"
endif
if exist fs4:\CDlinux\boot.efi then
set test "fs4:"
endif
if exist fs5:\CDlinux\boot.efi then
set test "fs5:"
endif
if exist fs6:\CDlinux\boot.efi then
set test "fs6:"
endif
if exist fs7:\CDlinux\boot.efi then
set test "fs7:"
endif
if exist fs8:\CDlinux\boot.efi then
set test "fs8:"
endif
if exist fs9:\CDlinux\boot.efi then
set test "fs9:"
endif
if exist fsa:\CDlinux\boot.efi then
set test "fsa:"
endif
if exist fsb:\CDlinux\boot.efi then
set test "fsb:"
endif
%test%\CDlinux\boot |
|