|
独剑大大,有个问题百思不得其解,您的这个U+高端隐藏方案明明就是以grldr作为bios模式的引导文件的,为什么生成的iso用ultraiso写入时总是识别不到grldr呢?请指点一下吧
- @echo off
- cd /d "%~dp0"
- path "%~dp0bin";%path%
- set seta=%1
- if not defined seta set seta=noset
- if %seta%==uid goto uid
- rem 基于mkisofs制作,支持BIOS和UEFI双启,mkisofs引用时请注意文件夹和文件名大小写
- set ver=efi
- md diy\
- echo Copying files,please wait……
- if not exist diy\grldr copy /y source\ud_primary\grldr diy\grldr>nul
- xcopy /y /s /e source\ud_extended\*.* diy\ >nul
- xcopy /y /s /e source\zp_uefi\*.* diy\ >nul
- set efi=-eltorito-alt-boot -b EFI/BOOT/uefiall -no-emul-boot
- if not exist diy\EFI\boot\bootx64.efi set efi=
- if defined efi copy /y bin\UEFIALL diy\EFI\boot\uefiall>nul
- if not exist diy\EFI\boot\UEFIALL set efi=
- mkisofs.exe -hide-joliet boot.catalog -hide-joliet uefiall -l -joliet-long -relaxed-filenames -gbk4dos-filenames -gbk4win-filenames -no-emul-boot -boot-load-size 4 -o ..\pe%ver%.iso -v -V "efipe" -b grldr %efi% .\diy
- if defined efi del /F /Q diy\EFI\boot\uefiall>>nul
- rd diy /s /q
- exit
- rem 把diy好的东东放到ud_primary文件夹下,注意grldr大小写,然后用本脚打包成纯grub的bios引导的iso包。
- :UID
- if not exist source\ud_extended\grldr copy /y source\ud_primary\grldr source\ud_extended\grldr>>nul
- mkisofs.exe -o .\uis\UIS.ISO -v -V "TYPEDOS" -hide-joliet boot.catalog -l -joliet-long -relaxed-filenames -gbk4dos-filenames -gbk4win-filenames -no-emul-boot -boot-load-size 4 -b grldr .\source\ud_extended
- if exist .\uis\UIS.ISO del /F /Q source\ud_extended\grldr>>nul
- exit
-
复制代码 |
|