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.15
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyentumine committed Sep 26, 2020
1 parent 013ec90 commit 0bf1d86
Show file tree
Hide file tree
Showing 78 changed files with 198 additions and 80 deletions.
Binary file modified AIO/Files/PartIMG_ROOT.img
Binary file not shown.
Binary file modified AIO/Tools/AIOCreator_x64.exe
Binary file not shown.
48 changes: 28 additions & 20 deletions AIO/grub/Main.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,25 @@ source ${menudir}/Main.cfg;
### Start InstallWinISO
GetHotkey
menuentry "${installwiniso}" --hotkey=${hotkey} {
#unset ignore_fs_args
#unset ignore_dir_args
#export ignore_fs_args="fat procfs pyfs"
#export ignore_dir_args="procfs pyfs"
unset pim
unset fs_args
unset file_ext_args
unset file_in_loop_args
export fs_args="fat ntfs exfat"
export file_ext_args="iso"
export file_in_loop_args="/sources/install.wim /x64/sources/install.esd /x86/sources/install.esd /sources/install.esd"
if [ -n "$pc" ]; then
export file_in_loop_args="${file_in_loop_args} /I386/TXTSETUP.SIF /AMD64/TXTSETUP.SIF"
if [ "x${secureboot}" == "xON" ]; then
esc 1 "${sbenabledmsg}"
else
#unset ignore_fs_args
#unset ignore_dir_args
#export ignore_fs_args="fat procfs pyfs"
#export ignore_dir_args="procfs pyfs"
unset pim
unset fs_args
unset file_ext_args
unset file_in_loop_args
export fs_args="fat ntfs exfat"
export file_ext_args="iso"
export file_in_loop_args="/sources/install.wim /x64/sources/install.esd /x86/sources/install.esd /sources/install.esd"
if [ -n "$pc" ]; then
export file_in_loop_args="${file_in_loop_args} /I386/TXTSETUP.SIF /AMD64/TXTSETUP.SIF"
fi
configfile ${prefix}/FileManager.cfg
fi
configfile ${prefix}/FileManager.cfg
}
### End InstallWinISO
### Start ISO & IMG Mapper
Expand Down Expand Up @@ -120,15 +124,19 @@ menuentry "${searchcfgmenu}" --hotkey=${hotkey} {
configfile ${prefix}/SearchGrub2Cfg.cfg
}
### End Search Grub2 configfile
### Start Disable Secure Boot
if [ "x${secureboot}" == "xON" ]; then
GetHotkey
menuentry "${disablesb}" --hotkey=${hotkey} {
efiload -n /efi/drivers/fucksb_${_SPEC_UEFI_ARCH}.efi
Refresh
}
fi
### End Disable Secure Boot
### Start Refresh
GetHotkey
menuentry "${f5}" --hotkey=${hotkey} {
search --file --no-floppy --set=root /AIO/aioboot.com.html
if [ -n "${efi}" ]; then
chainloader /efi/boot/boot${_SPEC_UEFI_ARCH}.efi
else
multiboot /aio/grub/i386-pc/core.img
fi
Refresh
}
### End Refresh
### Start halt
Expand Down
3 changes: 2 additions & 1 deletion AIO/grub/Settings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ menuentry "${timeoutmenu}" --hotkey=${hotkey} {
fi
esc 2
unset time_out
}
}
ReturnMainMenu
62 changes: 27 additions & 35 deletions AIO/grub/functions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -248,37 +248,6 @@ function freebsd_zfs_variants {
fi
}

function drivemap_to_hd0 {
if [ -z "$1" ]; then
set _device="${root}"
else
set _device="${1}"
fi
if ! regexp -s _disknum '^\(?hd([0-9]+)' "$_device"; then
esc 1 "Only hard disks are supported."
return 1
fi
if [ "$_disknum" == "0" ]; then
return 0
elif [ "$_disknum" == "1" ]; then
drivemap -s (hd0) (hd1)
else
drivemap -s (hd${_disknum}) (hd0)
set _newdisknum="$_disknum"
while [ "x${_disknum}" != "x1" ]; do
decrement _disknum
drivemap -s (hd${_newdisknum}) (hd${_disknum})
set _newdisknum=${_disknum}
done
drivemap (hd0) (hd1)
unset _newdisknum
fi
unset _disknum
unset _device
return 0
}


function drivemap_hd0_to_hdn {
GetDiskPartNum
if [ "${disknum}" == "0" ]; then
Expand All @@ -291,12 +260,14 @@ function drivemap_hd0_to_hdn {
fi
fi
done
drivemap (hd0) ${_disk}
if [ "(hd0)" != "${_disk}" ] -a [ "(hd1)" != "${_disk}" ]; then
drivemap (hd0) ${_disk}
fi
regexp -s disk_n '^\(hd(.*)\)$' "$_disk"
unset _disk
unset _next_disk
else
set disk_n="0"
set disk_n="${disknum}"
fi
}

Expand Down Expand Up @@ -337,6 +308,10 @@ function ntbootcmd {
terminal_output console
ntboot ${_args} --efi=/AIO/Tools/MS/PXE/bootmgr "${_file}"
else
if [ "x${secureboot}" == "xON" ]; then
esc 1 "${sbenabledmsg}"
return 1
fi
if [ "$_file_ext" == "wim" ]; then
if wimtools --is64 "${_file}"; then set wimarch="64"; else set wimarch="32"; fi
if [ "$_SPEC_UEFI_ARCH_3" != "$wimarch" ]; then
Expand Down Expand Up @@ -371,6 +346,10 @@ function wimbootwinsetup {
@:Winpeshl.ini:/AIO/Tools/winsetup/Winpeshl.ini \
@:boot.wim:"${1}"
else
if [ "x${secureboot}" == "xON" ]; then
esc 1 "${sbenabledmsg}"
return 1
fi
if [ "$_SPEC_UEFI_ARCH_3" != "$wimarch" ]; then
esc 1 "$efi3264msg"
return 1
Expand Down Expand Up @@ -885,12 +864,16 @@ function FileProcessing {
for cfg in /boot/grub/loopback.cfg /efi/boot/loopback.cfg /EFI/BOOT/loopback.cfg; do
if ! test -e (isoloop)$cfg; then continue; fi
cat -s cfgtext (isoloop)$cfg
if regexp ' /grub/grub.cfg' "$cfgtext"; then
if regexp " /grub/grub.cfg" "$cfgtext"; then
if ! test -e (isoloop)/grub/grub.cfg; then continue; fi
fi
if regexp '/casper/initrd.lz' "$cfgtext"; then
if regexp "/casper/initrd.lz" "$cfgtext"; then
if ! test -e (isoloop)/casper/initrd.lz; then continue; fi
fi
if regexp "source /boot/grub/grub.cfg" "$cfgtext"; then
cat -s new_cfgtext (isoloop)/boot/grub/grub.cfg
if ! regexp 'iso_path' "$new_cfgtext"; then continue; fi
fi

probe -u -s rootuuid $loopdev
export rootuuid
Expand Down Expand Up @@ -1281,4 +1264,13 @@ function wimbooting {
linux16 ${g4d_path}/grub.exe --config-file=${opt}
boot
fi
}

function Refresh {
search --file --no-floppy --set=root /AIO/aioboot.com.html
if [ -n "${efi}" ]; then
chainloader /efi/boot/boot${_SPEC_UEFI_ARCH}.efi
else
multiboot /aio/grub/i386-pc/core.img
fi
}
16 changes: 4 additions & 12 deletions AIO/grub/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if [ -z "$grub_enable_menu_hotkey" ]; then
fi

if [ "${grub_platform}" == "efi" ]; then
set modules="gfxmenu part_acorn part_apple part_bsd part_dfly part_dvh part_plan part_sun part_sunpc"
export efi=1
if [ "${grub_cpu}" == "x86_64" ]; then
export _SPEC_UEFI_ARCH="x64"
Expand All @@ -32,24 +31,17 @@ if [ "${grub_platform}" == "efi" ]; then
export _SPEC_UEFI_ARCH_2="86"
export _SPEC_UEFI_ARCH_3="32"
fi
if [ x"$secureboot" == xON ] -a [ -z "$fucksb_done" ]; then
sbpolicy -i
fucksb -i
fucksb --off
export fucksb_done="?"
fi
elif [ "${grub_platform}" == "pc" ]; then
set modules="gfxmenu search linux linux16 afs bfs ext2 f2fs hfs hfsplus iso9660 jfs part_acorn part_apple part_bsd part_dfly part_dvh part_plan part_sun part_sunpc udf ufs1 ufs1_be ufs2 xfs zfs sfs progress"
for module in ${modules}; do
insmod ${module}
done
unset modules
export pc=1
export memdisk="(${root})/AIO/Tools/memdisk"
export g4d_path="(${root})/AIO/Tools/grub4dos"
fi

for module in ${modules}; do
insmod ${module}
done
unset modules

if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
Expand Down
Binary file removed AIO/grub/i386-efi/cbfs.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/cpio_be.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/increment.mod
Binary file not shown.
Binary file modified AIO/grub/i386-efi/linux16.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/lynxfs.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/minix.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/minix2.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/minix2_be.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/minix3.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/minix3_be.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/minix_be.mod
Binary file not shown.
8 changes: 4 additions & 4 deletions AIO/grub/i386-efi/moddep.lst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pata: ata
mul_test: functional_test
adler32: crypto
terminal:
shim_lock: verifiers
shim_lock: sbpolicy verifiers
div:
ehci: cs5536 usb boot
crypto:
Expand Down Expand Up @@ -172,10 +172,10 @@ strtoull_test: functional_test
bitmap:
ntfs: fshelp
multiboot: net linux video boot relocator mmap
wimboot: lua map sbpolicy extcmd normal procfs xzio
wimboot: lua map extcmd normal procfs xzio
tpm: verifiers
gcry_crc: crypto
efiload: extcmd
efiload: sbpolicy linuxefi extcmd
png: bufio bitmap
json:
jpeg: bufio bitmap
Expand Down Expand Up @@ -290,8 +290,8 @@ lzmaio:
ufs1:
mdraid09: diskfilter
lvm: diskfilter
chain: net extcmd efinet normal boot
cbfs: archelp
chain: net sbpolicy linuxefi extcmd efinet normal boot
ufs2:
time:
setpci: extcmd
Expand Down
Binary file removed AIO/grub/i386-efi/nilfs2.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/odc.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/part_acorn.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/part_dfly.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/part_dvh.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/part_plan.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/part_sun.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/part_sunpc.mod
Binary file not shown.
Binary file added AIO/grub/i386-efi/progress.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/qnx4.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/qnx6.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/romfs.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/sfs.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/ufs1.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/ufs1_be.mod
Binary file not shown.
Binary file removed AIO/grub/i386-efi/ufs2.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/grubfm.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/linux.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/linux16.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/lua.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/normal.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/verifiers.mod
Binary file not shown.
Binary file modified AIO/grub/i386-pc/version.mod
Binary file not shown.
4 changes: 3 additions & 1 deletion AIO/grub/locale/Lang.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,6 @@ export hotkeymenu
export setdefaultmsg
export getkeymsg
export vmmsg
export reinstallgrub2msg
export reinstallgrub2msg
export disablesb
export sbenabledmsg
4 changes: 3 additions & 1 deletion AIO/grub/locale/en.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ set disable="Disable"
set bootfrom="Boot from ISO, WIM & VHD"
set installwiniso="Install Windows from ISO"
set settings="Settings"
set disablesb="Disable Secure Boot for this session"

### Help Menu
set menu="Menu"
Expand Down Expand Up @@ -118,4 +119,5 @@ set nobootablemsg="Unable to support booting this file!"
set setdefaultmsg="For the next step, choose whichever entry you want to set as the default."
set getkeymsg="Press [1] to continue. Press any other key to return."
set vmmsg="This does not support running on virtual machines. Please use real machine."
set reinstallgrub2msg="You must reinstall Grub2 to use this feature.\nAIOCreator.exe -> Bootloaders -> Grub2."
set reinstallgrub2msg="You must reinstall Grub2 to use this feature.\nAIOCreator.exe -> Bootloaders -> Grub2."
set sbenabledmsg="This function does not work with Secure Boot enabled.\nPlease consider disabling Secure Boot then try again."
Loading

0 comments on commit 0bf1d86

Please sign in to comment.