Closed farukgkc closed 4 years ago
remove boot
?
Any further information? @farukgkc
hi a1live; @serhat100 from TNCTR asking and suggest this changing in winpe.lua:
@serhat100 said that:
_If we change the Winpe.lua codes like this, "terminaloutput console \ n" .. I changed the order of the code "efi" and "pc" to the top. If you ask a1ive, I couldn't test but I think it should be
local function gen_wimboot (wim) local platform = grub.getenv ("grub_platform") local iso_path = string.match (grub.getenv ("grubfm_file"), "^%([%w,]+%)(.*)$") local cmd = "set installiso=\"" .. iso_path .. "\"\n" .. "terminal_output console\n" .. "tr --set=installiso \"/\" \"\\\"\n" .. "loopback -m envblk ${prefix}/null.cpio\n" .. "save_env -s -f (envblk)/null.cfg installiso\n" .. "cat (envblk)/null.cfg\n" .. "loopback wimboot ${prefix}/wimboot.gz\n" .. "loopback install ${prefix}/install.gz\n" if platform == "pc" then cmd = cmd .. "set enable_progress_indicator=1\n" .. "linux16 (wimboot)/wimboot\n" .. "initrd16 newc:bootmgr:(wimboot)/bootmgr" .. " newc:bootmgr.exe:(wimboot)/bootmgr.exe" .. " newc:bcd:(wimboot)/bcd newc:boot.sdi:(wimboot)/boot.sdi" .. " newc:null.cfg:(envblk)/null.cfg" .. " newc:mount_x64.exe:(install)/mount_x64.exe" .. " newc:mount_x86.exe:(install)/mount_x64.exe" .. " newc:start.bat:(install)/silent.bat" .. " newc:winpeshl.ini:(install)/winpeshl.ini" .. " newc:boot.wim:\"" .. wim .. "\"\n" .. "set gfxmode=1920x1080,1366x768,1024x768,800x600,auto\n" .. "terminal_output gfxterm\n" .. "boot\n" else cmd = cmd .. "set lang=en_US\n" .. "wimboot @:bootmgfw.efi:(wimboot)/bootmgfw.efi" .. " @:bcd:(wimboot)/bcd @:boot.sdi:(wimboot)/boot.sdi" .. " @:null.cfg:(envblk)/null.cfg" .. " @:mount_x64.exe:(install)/mount_x64.exe" .. " @:mount_x86.exe:(install)/mount_x64.exe" .. " @:start.bat:(install)/silent.bat" .. " @:winpeshl.ini:(install)/winpeshl.ini" .. " @:boot.wim:\"" .. wim .. "\"\n"
Thanks
Hi, https://github.com/a1ive/grub2-filemanager/blob/master/boot/grubfm/rules/iso/winpe.lua#L85
These commands don't work. Would you check?