@@ -7,36 +7,21 @@ for isofile in $iso_dir/$iso_pattern; do
77 if [ -e " $isofile" ]; then
88 regexp --set =isoname " $iso_dir/(.*)" " $isofile"
99
10- if [ " ${grub_platform}" == " efi" ]; then
11- menuentry " $isoname" " $isofile" --class =windows {
12- terminal_output console
13- echo Loading boot.wim... This may take some time
14- iso_path =" $2"
15- save_env iso_path
16- LOOPBACK " $iso_path"
17- linux /MultiOS-USB/tools/wimboot-*/wimboot.x86_64 quiet
18- initrd newc:boot.wim:(loop)/sources/boot.wim \
19- newc:mountIso.exe:/MultiOS-USB/tools/mountiso/mountiso64.exe \
20- newc:grubenv:($dev,1)/grub/grubenv \
21- newc:Winpeshl.ini:/MultiOS-USB/config/windows/Winpeshl.ini
22- echo Loading boot.wim complete, booting...
23- }
24- else
25- menuentry " $isoname" " $isofile" --class =windows {
26- terminal_output console
10+ menuentry " $isoname" " $isofile" --class =windows {
11+ if [ " ${grub_platform}" != " efi" ]; then
2712 rmmod iso9660
2813 drivemap -s (hd0) (hd1)
29- echo Loading boot.wim... This may take some time
30- iso_path = " $2 "
31- save_env iso_path
32- LOOPBACK " $ iso_path"
33- linux16 /MultiOS-USB/tools/wimboot-*/wimboot.x86_64 quiet
34- initrd16 newc:boot.wim:(loop)/sources/boot.wim \
35- newc:mountIso.exe:/MultiOS-USB/tools/mountiso/mountiso64.exe \
36- newc:grubenv:($dev,1)/grub/grubenv \
37- newc:Winpeshl.ini:/MultiOS-USB/config/windows/Winpeshl.ini
38- echo Loading boot.wim complete, booting...
39- }
40- fi
14+ fi
15+ echo Loading boot.wim... This may take some time
16+ iso_path = " $2 "
17+ save_env iso_path
18+ LOOPBACK " $iso_path "
19+ $wimboot_kernel /MultiOS-USB/tools/wimboot-*/wimboot.x86_64 quiet
20+ $wimboot_initrd newc:boot.wim:(loop)/sources/boot.wim \
21+ newc:mountIso.exe:/MultiOS-USB/tools/mountiso/mountiso64.exe \
22+ newc:grubenv:($dev,1)/grub/grubenv \
23+ newc:Winpeshl.ini:/MultiOS-USB/config/windows/Winpeshl.ini
24+ echo Loading boot.wim complete, booting...
25+ }
4126 fi
4227done
0 commit comments