-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgrub-ubuldr.cfg
51 lines (44 loc) · 949 Bytes
/
grub-ubuldr.cfg
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
insmod hello
if rmmod hello; then
chainloader /efi/boot/loader.efi
boot
exit
fi
set menu_color_normal=light-gray/red
set menu_color_highlight=yellow/red
menuentry "Load full boot menu (may require hash enrollment)" {
chainloader /efi/boot/preloader.efi
}
if [ -f /efi/microsoft/bootx64.efi ]; then
menuentry "Windows 10 Recovery" {
chainloader /efi/microsoft/bootx64.efi
}
fi
submenu "Ubuntu" {
for path in /usb-modboot/*buntu*.iso; do
loopback mod "$path"
if [ -f (mod)/boot/grub/loopback.cfg ]; then
menuentry "$path" {
set iso_path="$1"
export iso_path
loopback loopdev_cfg "${iso_path}"
set orig_root="$root"
set root=(loopdev_cfg)
configfile /boot/grub/loopback.cfg
loopback -d loopdev_cfg
set root="$orig_root"
terminal_output console
}
fi
loopback -d mod
done
}
menuentry "Reboot to UEFI Firmware Setup" {
fwsetup
}
menuentry "Reboot" {
reboot
}
menuentry "Halt" {
halt
}