Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
v0.9.9.1
Browse files Browse the repository at this point in the history
- Rearrange the order of all disks if the current disk is not 0.
- DLC Boot, AnhDV Boot, HKBoot
- VMware vSphere Hypervisor (ESXi) (UEFI & Legacy).
  • Loading branch information
nguyentumine committed Aug 6, 2020
1 parent f1cb41a commit 8d17ca4
Show file tree
Hide file tree
Showing 11 changed files with 156 additions and 34 deletions.
Binary file modified AIO/Tools/AIOCreator_x64.exe
Binary file not shown.
Binary file added AIO/Tools/syslinux/menu.c32
Binary file not shown.
Binary file added AIO/Tools/syslinux/syslinux.exe
Binary file not shown.
Binary file added AIO/Tools/syslinux/syslinux64.exe
Binary file not shown.
79 changes: 47 additions & 32 deletions AIO/grub/functions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -268,25 +268,43 @@ function drivemap_to_hd0 {
else
set device="${1}"
fi
if regexp -s disknum '^hd([0-9]+)' "$device"; then
if [ "$disknum" != "0" ]; then
drivemap -s (hd0) (hd${disknum})
if [ -n "$2" ]; then
set _var="$2"
probe -p -s hdscheme $device
regexp -s partnum "^hd${disknum},${hdscheme}([0-9]+)" "$device"
regexp -s partnum "([0-9]+).${partnum}" "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"
set $"${_var}"="(hd0,${partnum})"
unset _var
unset hdscheme
unset partnum
fi
return 0
if ! regexp -s disknum '^hd([0-9]+)' "$device"; then
esc 1 "Only hard disks are supported."
return 1
fi
if [ "$disknum" != "0" ]; then
if [ "$disknum" == "1" ]; then
drivemap -s (hd0) (hd1)
else
set arr="9 8 7 6 5 4 3 2 1"
# 10 disks is enough?
regexp -s arr "${disknum} (.*)" "$arr"
drivemap -s (hd${disknum}) (hd0)
set _disknum="$disknum"
for num in $arr; do
drivemap -s (hd${_disknum}) (hd${num})
set _disknum=${num}
done
drivemap (hd0) (hd1)
unset num
unset _disknum
unset arr
fi
unset disknum
fi
unset disknum
if [ -n "$2" ]; then
# convert grub2 root to grub4dos root and set variable 2
set _var="$2"
probe -p -s hdscheme $device
regexp -s partnum "^hd${disknum},${hdscheme}([0-9]+)" "$device"
regexp -s partnum "([0-9]+).${partnum}" "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31"
set $"${_var}"="(hd0,${partnum})"
unset _var
unset hdscheme
unset partnum
fi
unset device
return 1
return 0
}

function partimgentry {
Expand Down Expand Up @@ -320,7 +338,7 @@ function partimgentry {
fi
elif [ "${parttype}" == "jfs" ]; then fstype="0x35"
fi
set opt="debug off; root ${g4droot} > nul; ${g4d_path}/partnew.g4b ${g4ddisk},${partnum} ${fstype} ${2} ${lang}"
set opt="root ${g4droot}; ${g4d_path}/partnew.g4b ${g4ddisk},${partnum} ${fstype} ${2} ${lang}"
linux ${g4d_path}/grub.exe --config-file=${opt}
fi
fi
Expand Down Expand Up @@ -468,8 +486,7 @@ function WindowsDetect {
'(' -f ($device)/NTLDR -a -e ($device)/NTDETECT.COM -a -f ($device)/BOOT.INI ')' \
; then
set root="$device"
regexp -s devnum 'hd([0-9]+)' $root
if test "$devnum" != "0"; then drivemap -s hd0 $root; fi
drivemap_to_hd0 "$root"
ntldr /ntldr
boot
fi
Expand Down Expand Up @@ -595,20 +612,18 @@ function FileProcessing {
fi
elif [ -e (isoloop)/I386/TXTSETUP.SIF ] -o [ -e (isoloop)/AMD64/TXTSETUP.SIF ]; then
menuentry "${installxp} - ${stepmsg} 1" {
if ! drivemap_to_hd0 "${root}" "g4droot"; then
grub4dosroot
if drivemap_to_hd0 "${root}" "g4droot"; then
set g4d_cmd="root ${g4droot};${g4d_path}/INSTALLXP cd $path";
linux ${g4d_path}/grub.exe --config-file=${g4d_cmd};
initrd ${g4d_path}/winvblk.img;
fi
set g4d_cmd="root ${g4droot};${g4d_path}/INSTALLXP cd $path";
linux ${g4d_path}/grub.exe --config-file=${g4d_cmd};
initrd ${g4d_path}/winvblk.img;
}
menuentry "${installxp} - ${stepmsg} 2" {
if ! drivemap_to_hd0 "${root}" "g4droot"; then
grub4dosroot
if drivemap_to_hd0 "${root}" "g4droot"; then
set g4d_cmd="root ${g4droot};${g4d_path}/INSTALLXP hd $path";
linux ${g4d_path}/grub.exe --config-file=${g4d_cmd};
initrd ${g4d_path}/winvblk.img;
fi
set g4d_cmd="root ${g4droot};${g4d_path}/INSTALLXP hd $path";
linux ${g4d_path}/grub.exe --config-file=${g4d_cmd};
initrd ${g4d_path}/winvblk.img;
}
elif test -e (isoloop)/boot/grub/loopback.cfg -o -e (isoloop)/efi/boot/loopback.cfg -o -e (isoloop)/boot/grub/loopback.cfg; then
for cfg in /boot/grub/loopback.cfg /efi/boot/loopback.cfg /EFI/BOOT/loopback.cfg; do
Expand Down Expand Up @@ -847,7 +862,7 @@ function FileProcessing {
elif [ wimtools --exist "${file}" \\I386\\System32\\cmd.exe ] -a [ -n "$pc" ]; then
grub4dosroot
set fullpath="${g4droot}${path}"
set opt="debug off; ${g4d_path}/bootvhd.g4b PE1 ${fullpath}"
set opt="${g4d_path}/bootvhd.g4b PE1 ${fullpath}"
linux ${g4d_path}/grub.exe --config-file=${opt}
fi
elif [ "$file_ext" == "vhd" ] -o [ "$file_ext" == "vhdx" ]; then
Expand All @@ -860,7 +875,7 @@ function FileProcessing {
menuentry "[2] Windows XP/2003 (NT5)" "${path}" --hotkey="2" {
grub4dosroot
set fullpath="${g4droot}${2}"
set opt="debug off; ${g4d_path}/bootvhd.g4b NT5 ${fullpath}"
set opt="${g4d_path}/bootvhd.g4b NT5 ${fullpath}"
linux ${g4d_path}/grub.exe --config-file=${opt}
}
fi
Expand All @@ -873,7 +888,7 @@ function FileProcessing {
if [ "$3" == "iso" ]; then set boottype="bootiso"; else set boottype="bootraw"; fi
grub4dosroot
set fullpath="${g4droot}${path}"
set opt="debug off; ${g4d_path}/${boottype}.g4b ${fullpath}"
set opt="${g4d_path}/${boottype}.g4b ${fullpath}"
linux ${g4d_path}/grub.exe --config-file=${opt}
}
unset timeout
Expand Down
25 changes: 25 additions & 0 deletions AIO/grub/menuoff/anhdv.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
### Start Anhdv_Boot_2020_v2.0.3_Build_200726
### Anhdv_Boot_2020_v2.0.3_Build_200726.iso
set timeout=0
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "x64" ]; then
menuentry "[1] Win 10 PE x64" --hotkey=1 {
ntbootcmd "/AIO/Files/AnhDV/WIM/w10pe64.wim" "wim"
}
fi
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "ia32" ]; then
menuentry "[2] Win 8 PE x32" --hotkey=2 {
ntbootcmd "/AIO/Files/AnhDV/WIM/w8pe32.wim" "wim"
}
fi
if [ -n "$pc" ]; then
unset timeout
menuentry "[3] Win 8 PE x32 [Lite]" --hotkey=3 {
ntbootcmd "/AIO/Files/AnhDV/WIM/w8pe32lite.wim" "wim"
}
fi
if [ -n "$pc" ]; then
menuentry "[4] XP" --hotkey=4 {
ntldr /AIO/Files/AnhDV/MiniXP.mbr
}
fi
### End Anhdv_Boot_2020_v2.0.3_Build_200726
20 changes: 20 additions & 0 deletions AIO/grub/menuoff/dlc1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
### Start DLC.Boot.2019.V3.6
### DLC.Boot.2019.V3.6.rar
set timeout=0
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "x64" ]; then
menuentry "[1] W10x64" --hotkey=1 {
ntbootcmd "/DLC1/W10PE/W10x64.wim" "wim"
}
fi
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "ia32" ]; then
menuentry "[2] W10x86" --hotkey=2 {
ntbootcmd "/DLC1/W10PE/W10x86.wim" "wim"
}
fi
if [ -n "$pc" ]; then
unset timeout
menuentry "[3] XP" --hotkey=3 {
ntldr /DLC1/XP/XP.BIN
}
fi
### End DLC.Boot.2019.V3.6
26 changes: 26 additions & 0 deletions AIO/grub/menuoff/hkboot.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
### Start HKBoot_2017_ChiaSeTuTam.Com
### HKBoot_2017_ChiaSeTuTam.Com.ISO
set timeout=0
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "x64" ]; then
unset timeout
menuentry "[1] Win 10 PE x64" --hotkey=1 {
ntbootcmd "/AIO/Files/HKBoot/HKBoot/PE/W10x64PE.wim" "wim"
}
fi
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "ia32" ]; then
menuentry "[2] Win 10 PE x32" --hotkey=2 {
ntbootcmd "/AIO/Files/HKBoot/HKBoot/PE/W10x86PE.wim" "wim"
}
fi
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "x64" ]; then
unset timeout
menuentry "[3] Win 8 PE x64" --hotkey=3 {
ntbootcmd "/AIO/Files/HKBoot/HKBoot/PE/W8x64PE.wim" "wim"
}
fi
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "ia32" ]; then
menuentry "[4] Win 8 PE x32" --hotkey=4 {
ntbootcmd "/AIO/Files/HKBoot/HKBoot/PE/W8x86PE.wim" "wim"
}
fi
### End HKBoot_2017_ChiaSeTuTam.Com
32 changes: 32 additions & 0 deletions AIO/grub/menuoff/strelec.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
### Start WinPE10_8_Sergei_Strelec_x86_x64_2020.06.09_English
### WinPE10_8_Sergei_Strelec_x86_x64_2020.06.09_English.iso
set timeout=0

if [ -e /SSTR/strelec10x64Eng.wim ]; then
set sstr_file="Eng.wim"
else
set sstr_file=".wim"
fi

if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "x64" ]; then
menuentry "[1] strelec 10 x64" --hotkey=1 {
ntbootcmd "/SSTR/strelec10x64${sstr_file}" "wim"
}
fi
if [ -n "$pc" ] -o [ -n "$efi" -a "$_SPEC_UEFI_ARCH" == "ia32" ]; then
menuentry "[2] strelec 10 x32" --hotkey=2 {
ntbootcmd "/SSTR/strelec10${sstr_file}" "wim"
}
fi
if [ -n "$pc" ]; then
menuentry "[4] strelec 8" --hotkey=4 {
ntbootcmd "/SSTR/strelec8${sstr_file}" "wim"
}
fi
if [ -n "$pc" ]; then
unset timeout
menuentry "[3] strelec 8 NE" --hotkey=3 {
ntbootcmd "/SSTR/strelec8NE${sstr_file}" "wim"
}
fi
### End WinPE10_8_Sergei_Strelec_x86_x64_2020.06.09_English
8 changes: 6 additions & 2 deletions AIO/grub/menuoff/vSphereHypervisor.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
### Start
### VMware-VMvisor-Installer-6.7.0-8169922.x86_64.iso
### VMware-VMvisor-Installer-7.0b-16324942.x86_64.iso
set extract_path=""
set timeout=0
menuentry "[1] VMware vSphere Hypervisor" --hotkey=1 {
chainloader ${extract_path}/EFI/BOOT/BOOTX64.EFI
if [ -n "$efi" ]; then
chainloader ${extract_path}/syslinux/EFI/BOOT/BOOTX64.EFI
else
chainloader ${extract_path}/syslinux/syslinux.bin
fi
}
### End
Binary file modified AIOCreator.exe
Binary file not shown.

0 comments on commit 8d17ca4

Please sign in to comment.