Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
reduce size
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Jun 10, 2020
1 parent 86874d1 commit 3597af8
Show file tree
Hide file tree
Showing 19 changed files with 59 additions and 561 deletions.
2 changes: 1 addition & 1 deletion arch/legacy/insmod.lst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
acpi affs afs all_video aout at_keyboard bfs bitmap bitmap_scale blocklist bmp bsd btrfs cat cmp commandline conv cpuid crc date datehook datetime dd disk diskfilter dm_nv drivemap elf eval expr f2fs fatfs fdlibm file freedos functional_test gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync grubfm hashsum hexdump hfs hfsplus ini jfs jpeg keylayouts keystatus legacycfg loadenv lsacpi lsapm lua lvm macho mmap mdraid09 mdraid09_be msdospart multiboot multiboot2 nes ntfscomp offsetio part_apple part_bsd partnew parttool password pci png priority_queue probe procfs progress raid5rec raid6rec random read reboot regexp reiserfs search_fs_uuid search_label sendkey serial setjmp setkey sleep sortlib squash4 stat syslinuxcfg terminfo tga time tr trig true vbe vboot ventoy version vga vhd video video_bochs video_cirrus video_colors video_fb videoinfo wimboot xfs xnu zfs zstd
acpi affs afs all_video aout at_keyboard bfs bitmap bitmap_scale blocklist bmp bsd btrfs cat cmp commandline conv cpuid crc date datehook datetime dd disk diskfilter dm_nv drivemap elf eval expr f2fs fatfs fdlibm file freedos functional_test gcry_arcfour gcry_blowfish gcry_camellia gcry_cast5 gcry_crc gcry_des gcry_dsa gcry_idea gcry_md4 gcry_md5 gcry_rfc2268 gcry_rijndael gcry_rmd160 gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 gcry_sha512 gcry_tiger gcry_twofish gcry_whirlpool getkey gfxmenu gfxterm gfxterm_background gfxterm_menu gptsync grubfm hashsum hexdump hfs hfsplus ini jfs jpeg keylayouts keystatus legacycfg loadenv lsacpi lsapm lua lvm macho map mmap mdraid09 mdraid09_be msdospart multiboot multiboot2 nes ntboot ntfscomp offsetio part_apple part_bsd partnew parttool password pci png priority_queue probe procfs progress raid5rec raid6rec random read reboot regexp reiserfs search_fs_uuid search_label sendkey serial setjmp setkey sleep sortlib squash4 stat syslinuxcfg terminfo tga time tr trig true uuid vbe vboot ventoy version vga vhd video video_bochs video_cirrus video_colors video_fb videoinfo wimboot xfs xnu zfs zstd
Binary file removed arch/legacy/ntboot/NTBOOT.MOD/NTBOOT.NT5
Binary file not shown.
Binary file removed arch/legacy/ntboot/NTBOOT.MOD/NTBOOT.NT6
Binary file not shown.
Binary file removed arch/legacy/vbootldr.gz
Binary file not shown.
Binary file removed arch/legacy/ventoy.gz
Binary file not shown.
Binary file modified arch/legacy/wimboot.gz
Binary file not shown.
Binary file removed arch/x64/ventoy.gz
Binary file not shown.
6 changes: 2 additions & 4 deletions boot/grubfm/distro/win.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ function win_isoboot {
linux16 (wimboot)/wimboot;
if [ -z "${2}" ];
then
initrd16 newc:bootmgr:(wimboot)/bootmgr \
newc:bootmgr.exe:(wimboot)/bootmgr.exe \
initrd16 newc:bootmgr.exe:(wimboot)/bootmgr.exe \
newc:bcd:(wimboot)/bcd \
newc:boot.sdi:(wimboot)/boot.sdi \
newc:null.cfg:(envblk)/null.cfg \
Expand All @@ -32,8 +31,7 @@ function win_isoboot {
newc:winpeshl.ini:(install)/winpeshl.ini \
newc:boot.wim:"${1}";
else
initrd16 newc:bootmgr:(wimboot)/bootmgr \
newc:bootmgr.exe:(wimboot)/bootmgr.exe \
initrd16 newc:bootmgr.exe:(wimboot)/bootmgr.exe \
newc:bcd:(wimboot)/bcd \
newc:boot.sdi:(wimboot)/boot.sdi \
newc:null.cfg:(envblk)/null.cfg \
Expand Down
31 changes: 18 additions & 13 deletions boot/grubfm/osdetect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,24 @@ do
if ntversion "(${device})" sysver;
then
to_win_ver "${sysver}";
menuentry $"Boot ${winver} on ${device} ${info}" "${device}" "${sysver}" --class nt6 {
regexp --set=1:tmp --set=2:num '(hd[0-9]+,)[a-zA-Z]*([0-9]+)' "${2}";
expr --set=num "${num} - 1";
set g4d_dev="(${tmp}${num})";
if regexp '^5\.' "${3}";
then
set nt="NT5";
else
set nt="NT6";
fi;
set g4d_cmd="find --set-root --ignore-floppies /fm.loop;/NTBOOT ${nt}=${g4d_dev};";
linux ${prefix}/grub.exe --config-file=${g4d_cmd};
}
if regexp '^5\.' "${sysver}";
then
echo "Skip NT ${sysver}";
else
menuentry $"Boot ${winver} on ${device} ${info}" "${device}" --class nt6 {
set root="${2}";
set lang=en_US;
terminal_output console;
loopback wimboot ${prefix}/wimboot.gz;
ntboot --win "(${root})";
linux16 (wimboot)/wimboot;
initrd16 newc:bootmgr.exe:(wimboot)/bootmgr.exe \
newc:bcd:(proc)/bcd;
set gfxmode=1920x1080,1366x768,1024x768,800x600,auto;
terminal_output gfxterm;
boot;
}
fi;
unset sysver;
unset winver;
fi;
Expand Down
Loading

0 comments on commit 3597af8

Please sign in to comment.