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

Commit 0bf1d86

Browse files
committed
v0.9.9.15
1 parent 013ec90 commit 0bf1d86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+198
-80
lines changed

AIO/Files/PartIMG_ROOT.img

1.94 MB
Binary file not shown.

AIO/Tools/AIOCreator_x64.exe

1 KB
Binary file not shown.

AIO/grub/Main.cfg

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@ source ${menudir}/Main.cfg;
44
### Start InstallWinISO
55
GetHotkey
66
menuentry "${installwiniso}" --hotkey=${hotkey} {
7-
#unset ignore_fs_args
8-
#unset ignore_dir_args
9-
#export ignore_fs_args="fat procfs pyfs"
10-
#export ignore_dir_args="procfs pyfs"
11-
unset pim
12-
unset fs_args
13-
unset file_ext_args
14-
unset file_in_loop_args
15-
export fs_args="fat ntfs exfat"
16-
export file_ext_args="iso"
17-
export file_in_loop_args="/sources/install.wim /x64/sources/install.esd /x86/sources/install.esd /sources/install.esd"
18-
if [ -n "$pc" ]; then
19-
export file_in_loop_args="${file_in_loop_args} /I386/TXTSETUP.SIF /AMD64/TXTSETUP.SIF"
7+
if [ "x${secureboot}" == "xON" ]; then
8+
esc 1 "${sbenabledmsg}"
9+
else
10+
#unset ignore_fs_args
11+
#unset ignore_dir_args
12+
#export ignore_fs_args="fat procfs pyfs"
13+
#export ignore_dir_args="procfs pyfs"
14+
unset pim
15+
unset fs_args
16+
unset file_ext_args
17+
unset file_in_loop_args
18+
export fs_args="fat ntfs exfat"
19+
export file_ext_args="iso"
20+
export file_in_loop_args="/sources/install.wim /x64/sources/install.esd /x86/sources/install.esd /sources/install.esd"
21+
if [ -n "$pc" ]; then
22+
export file_in_loop_args="${file_in_loop_args} /I386/TXTSETUP.SIF /AMD64/TXTSETUP.SIF"
23+
fi
24+
configfile ${prefix}/FileManager.cfg
2025
fi
21-
configfile ${prefix}/FileManager.cfg
2226
}
2327
### End InstallWinISO
2428
### Start ISO & IMG Mapper
@@ -120,15 +124,19 @@ menuentry "${searchcfgmenu}" --hotkey=${hotkey} {
120124
configfile ${prefix}/SearchGrub2Cfg.cfg
121125
}
122126
### End Search Grub2 configfile
127+
### Start Disable Secure Boot
128+
if [ "x${secureboot}" == "xON" ]; then
129+
GetHotkey
130+
menuentry "${disablesb}" --hotkey=${hotkey} {
131+
efiload -n /efi/drivers/fucksb_${_SPEC_UEFI_ARCH}.efi
132+
Refresh
133+
}
134+
fi
135+
### End Disable Secure Boot
123136
### Start Refresh
124137
GetHotkey
125138
menuentry "${f5}" --hotkey=${hotkey} {
126-
search --file --no-floppy --set=root /AIO/aioboot.com.html
127-
if [ -n "${efi}" ]; then
128-
chainloader /efi/boot/boot${_SPEC_UEFI_ARCH}.efi
129-
else
130-
multiboot /aio/grub/i386-pc/core.img
131-
fi
139+
Refresh
132140
}
133141
### End Refresh
134142
### Start halt

AIO/grub/Settings.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ menuentry "${timeoutmenu}" --hotkey=${hotkey} {
104104
fi
105105
esc 2
106106
unset time_out
107-
}
107+
}
108+
ReturnMainMenu

AIO/grub/functions.cfg

Lines changed: 27 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -248,37 +248,6 @@ function freebsd_zfs_variants {
248248
fi
249249
}
250250

251-
function drivemap_to_hd0 {
252-
if [ -z "$1" ]; then
253-
set _device="${root}"
254-
else
255-
set _device="${1}"
256-
fi
257-
if ! regexp -s _disknum '^\(?hd([0-9]+)' "$_device"; then
258-
esc 1 "Only hard disks are supported."
259-
return 1
260-
fi
261-
if [ "$_disknum" == "0" ]; then
262-
return 0
263-
elif [ "$_disknum" == "1" ]; then
264-
drivemap -s (hd0) (hd1)
265-
else
266-
drivemap -s (hd${_disknum}) (hd0)
267-
set _newdisknum="$_disknum"
268-
while [ "x${_disknum}" != "x1" ]; do
269-
decrement _disknum
270-
drivemap -s (hd${_newdisknum}) (hd${_disknum})
271-
set _newdisknum=${_disknum}
272-
done
273-
drivemap (hd0) (hd1)
274-
unset _newdisknum
275-
fi
276-
unset _disknum
277-
unset _device
278-
return 0
279-
}
280-
281-
282251
function drivemap_hd0_to_hdn {
283252
GetDiskPartNum
284253
if [ "${disknum}" == "0" ]; then
@@ -291,12 +260,14 @@ function drivemap_hd0_to_hdn {
291260
fi
292261
fi
293262
done
294-
drivemap (hd0) ${_disk}
263+
if [ "(hd0)" != "${_disk}" ] -a [ "(hd1)" != "${_disk}" ]; then
264+
drivemap (hd0) ${_disk}
265+
fi
295266
regexp -s disk_n '^\(hd(.*)\)$' "$_disk"
296267
unset _disk
297268
unset _next_disk
298269
else
299-
set disk_n="0"
270+
set disk_n="${disknum}"
300271
fi
301272
}
302273

@@ -337,6 +308,10 @@ function ntbootcmd {
337308
terminal_output console
338309
ntboot ${_args} --efi=/AIO/Tools/MS/PXE/bootmgr "${_file}"
339310
else
311+
if [ "x${secureboot}" == "xON" ]; then
312+
esc 1 "${sbenabledmsg}"
313+
return 1
314+
fi
340315
if [ "$_file_ext" == "wim" ]; then
341316
if wimtools --is64 "${_file}"; then set wimarch="64"; else set wimarch="32"; fi
342317
if [ "$_SPEC_UEFI_ARCH_3" != "$wimarch" ]; then
@@ -371,6 +346,10 @@ function wimbootwinsetup {
371346
@:Winpeshl.ini:/AIO/Tools/winsetup/Winpeshl.ini \
372347
@:boot.wim:"${1}"
373348
else
349+
if [ "x${secureboot}" == "xON" ]; then
350+
esc 1 "${sbenabledmsg}"
351+
return 1
352+
fi
374353
if [ "$_SPEC_UEFI_ARCH_3" != "$wimarch" ]; then
375354
esc 1 "$efi3264msg"
376355
return 1
@@ -885,12 +864,16 @@ function FileProcessing {
885864
for cfg in /boot/grub/loopback.cfg /efi/boot/loopback.cfg /EFI/BOOT/loopback.cfg; do
886865
if ! test -e (isoloop)$cfg; then continue; fi
887866
cat -s cfgtext (isoloop)$cfg
888-
if regexp ' /grub/grub.cfg' "$cfgtext"; then
867+
if regexp " /grub/grub.cfg" "$cfgtext"; then
889868
if ! test -e (isoloop)/grub/grub.cfg; then continue; fi
890869
fi
891-
if regexp '/casper/initrd.lz' "$cfgtext"; then
870+
if regexp "/casper/initrd.lz" "$cfgtext"; then
892871
if ! test -e (isoloop)/casper/initrd.lz; then continue; fi
893872
fi
873+
if regexp "source /boot/grub/grub.cfg" "$cfgtext"; then
874+
cat -s new_cfgtext (isoloop)/boot/grub/grub.cfg
875+
if ! regexp 'iso_path' "$new_cfgtext"; then continue; fi
876+
fi
894877

895878
probe -u -s rootuuid $loopdev
896879
export rootuuid
@@ -1281,4 +1264,13 @@ function wimbooting {
12811264
linux16 ${g4d_path}/grub.exe --config-file=${opt}
12821265
boot
12831266
fi
1267+
}
1268+
1269+
function Refresh {
1270+
search --file --no-floppy --set=root /AIO/aioboot.com.html
1271+
if [ -n "${efi}" ]; then
1272+
chainloader /efi/boot/boot${_SPEC_UEFI_ARCH}.efi
1273+
else
1274+
multiboot /aio/grub/i386-pc/core.img
1275+
fi
12841276
}

AIO/grub/grub.cfg

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ if [ -z "$grub_enable_menu_hotkey" ]; then
2121
fi
2222

2323
if [ "${grub_platform}" == "efi" ]; then
24-
set modules="gfxmenu part_acorn part_apple part_bsd part_dfly part_dvh part_plan part_sun part_sunpc"
2524
export efi=1
2625
if [ "${grub_cpu}" == "x86_64" ]; then
2726
export _SPEC_UEFI_ARCH="x64"
@@ -32,24 +31,17 @@ if [ "${grub_platform}" == "efi" ]; then
3231
export _SPEC_UEFI_ARCH_2="86"
3332
export _SPEC_UEFI_ARCH_3="32"
3433
fi
35-
if [ x"$secureboot" == xON ] -a [ -z "$fucksb_done" ]; then
36-
sbpolicy -i
37-
fucksb -i
38-
fucksb --off
39-
export fucksb_done="?"
40-
fi
4134
elif [ "${grub_platform}" == "pc" ]; then
4235
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"
36+
for module in ${modules}; do
37+
insmod ${module}
38+
done
39+
unset modules
4340
export pc=1
4441
export memdisk="(${root})/AIO/Tools/memdisk"
4542
export g4d_path="(${root})/AIO/Tools/grub4dos"
4643
fi
4744

48-
for module in ${modules}; do
49-
insmod ${module}
50-
done
51-
unset modules
52-
5345
if [ "${next_entry}" ] ; then
5446
set default="${next_entry}"
5547
set next_entry=

AIO/grub/i386-efi/cbfs.mod

-4.07 KB
Binary file not shown.

AIO/grub/i386-efi/cpio_be.mod

-2.85 KB
Binary file not shown.

AIO/grub/i386-efi/increment.mod

-1.92 KB
Binary file not shown.

AIO/grub/i386-efi/linux16.mod

232 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)