Skip to content

Commit 6504794

Browse files
committed
Update grub config
1 parent 8912f51 commit 6504794

151 files changed

Lines changed: 823 additions & 385 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BigLinux live GRUB configuration
2-
# UI language is intentionally neutral here; locale and keyboard selection are
3-
# handled by the graphical setup wizard after boot.
2+
# Locale, keyboard and timezone are selected by the graphical setup wizard
3+
# after boot, so this menu does not expose locale-selection controls.
44

55
insmod font
66
insmod part_msdos
@@ -15,70 +15,6 @@ function menu_reload {
1515
configfile /boot/grub/grub.cfg
1616
}
1717

18-
function is_efi {
19-
if [ "${grub_platform}" = "efi" ]; then
20-
return 0
21-
fi
22-
return 1
23-
}
24-
25-
function efi_detect {
26-
if is_efi; then
27-
insmod chain
28-
submenu "Detect EFI bootloaders" --class=efi --hotkey=f {
29-
set efi_found=false
30-
31-
for efi in \
32-
(*,gpt*)/efi/*/*.efi \
33-
(*,gpt*)/efi/*/*/*.efi \
34-
(*,gpt*)/*.efi \
35-
(*,gpt*)/*/*.efi \
36-
(*,msdos*)/efi/*/*.efi \
37-
(*,msdos*)/efi/*/*/*.efi \
38-
(*,msdos*)/*.efi \
39-
(*,msdos*)/*/*.efi; do
40-
if [ -e "${efi}" ]; then
41-
regexp --set=1:efi_device '^\((.*)\)/' "${efi}"
42-
set efi_found=true
43-
menuentry "${efi}" --class=efi "${efi_device}" {
44-
set root="${2}"
45-
chainloader "${1}"
46-
}
47-
fi
48-
done
49-
50-
if [ "${efi_found}" != "true" ]; then
51-
menuentry "No EFI files detected" --class=safe {
52-
menu_reload
53-
}
54-
fi
55-
}
56-
fi
57-
}
58-
59-
function memtest_detect {
60-
if is_efi; then
61-
if [ -f /boot/memtest-efi ]; then
62-
insmod chain
63-
menuentry "Run memory test" --class=memtest {
64-
chainloader /boot/memtest-efi
65-
}
66-
fi
67-
else
68-
if [ -f /boot/memtest ]; then
69-
menuentry "Run memory test" --class=memtest {
70-
linux16 /boot/memtest
71-
}
72-
fi
73-
fi
74-
}
75-
76-
function grub_reboot {
77-
menuentry "Restart computer" --class=restart {
78-
reboot
79-
}
80-
}
81-
8218
# Load local defaults first, but retain safe built-in fallbacks if a source
8319
# package is incomplete.
8420
if [ -f /boot/grub/variable.cfg ]; then
@@ -100,16 +36,14 @@ if [ -z "${default}" ]; then
10036
set default=0
10137
fi
10238

103-
# The theme deliberately uses a solid color rather than a full-screen image.
104-
# That avoids large PNG decoding/scaling in firmware with limited video memory.
105-
# A generic Unicode font may still enable gfxterm, but the custom theme is only
106-
# activated when its own Terminus font is available.
39+
# The theme uses a solid color rather than a full-screen image. This avoids
40+
# decoding or scaling a large background on firmware with limited video memory.
41+
# The attached Terminus Bold 22 font is the primary and only theme font.
10742
set gfx_ready=false
10843
set theme_ready=false
109-
if loadfont /boot/grub/themes/biglinux-live/terminus-16.pf2; then
44+
if loadfont /boot/grub/themes/biglinux-live/ter-u22b.pf2; then
11045
set gfx_ready=true
11146
set theme_ready=true
112-
loadfont /boot/grub/themes/biglinux-live/terminus-14.pf2
11347
elif [ -f /boot/grub/unicode.pf2 ]; then
11448
if loadfont /boot/grub/unicode.pf2; then
11549
set gfx_ready=true
@@ -156,15 +90,9 @@ export kopts
15690
export auto
15791
export clinput
15892

93+
# kernels.cfg also acts as the menu dispatcher. Nested menus are opened with
94+
# a nested normal-mode instance, allowing an explicit first "Back" entry to
95+
# return exactly one level through normal_exit.
96+
set biglinux_menu="root"
97+
export biglinux_menu
15998
source /boot/grub/kernels.cfg
160-
161-
if [ -n "${clinput}" ]; then
162-
menuentry "Clear extra boot parameters" --class=edit {
163-
unset clinput
164-
menu_reload
165-
}
166-
fi
167-
168-
efi_detect
169-
memtest_detect
170-
grub_reboot

0 commit comments

Comments
 (0)