|
我目前只实现bios下的,g4d大概是这样
kernel (fd0)/wimboot
find --set-root --ignore-floppies --ignore-cd /windows/system32/winload.exe
find --set-root --ignore-floppies --ignore-cd /Recovery/windowsRE/winre.wim
if not exist /Recovery/windowsRE/winre.wim && ls /Recovery/ | set repath=
if exist /Recovery/windowsRE/winre.wim && set repath=windowsRE
initrd @bcd=(fd0)/bcd
initrd @boot.sdi=(fd0)/boot.sdi
initrd @bootmgr=(fd0)/bootmgr
initrd @7zx86.dll=(bd)/wimboot/winre/7zx86.dll
initrd @7zx64.dll=(bd)/wimboot/winre/7zx64.dll
initrd @7zx86.exe=(bd)/wimboot/winre/7zx86.exe
initrd @7zx64.exe=(bd)/wimboot/winre/7zx64.exe
initrd @tool.7z=(bd)/wimboot/winre/tool.7z
initrd @winpeshl.ini=(bd)/wimboot/winre/winpeshl.ini
initrd @startup.bat=(bd)/wimboot/winre/startup.bat
initrd @boot.wim=/Recovery/%repath%/Winre.wim
准备这个菜单内容的grldr和相关的文件,从grldr启动后会进入winre环境的cgi还原界面,软件包全放置在tool.7z
efi可以用Grub2实现,不过efi下要启到grub2有点麻烦,需要添加efi项,这个我不会。。,相对来说还是用pe简单粗暴点
|
|