mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
- Add terminal and video output configuration in embedded GRUB config - Load essential GRUB modules (part_gpt, fat, ext2, linux, video drivers) - Enhance main GRUB config with proper terminal setup and multiple boot options - Add verbose and recovery mode boot menu entries - Remove 'quiet' parameter to show boot messages for debugging - Add console output to both tty0 and serial console - Include modules in grub-mkstandalone for better hardware compatibility Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
37 lines
943 B
INI
37 lines
943 B
INI
# Embedded bootstrap configuration for GRUB
|
|
# This config tells GRUB where to find the real configuration file
|
|
|
|
# Set proper terminal and video output
|
|
terminal_input console
|
|
terminal_output console
|
|
|
|
# Load essential modules
|
|
insmod part_gpt
|
|
insmod fat
|
|
insmod ext2
|
|
insmod normal
|
|
insmod linux
|
|
insmod all_video
|
|
insmod video_bochs
|
|
insmod video_cirrus
|
|
insmod gfxterm
|
|
|
|
# Set graphics mode for better compatibility
|
|
set gfxmode=auto
|
|
set gfxpayload=keep
|
|
|
|
# Search for ESP by label
|
|
search --no-floppy --set=root --label @ESP_LABEL@
|
|
|
|
# Try to load the main config file
|
|
if [ -e /boot/grub/grub.cfg ]; then
|
|
configfile /boot/grub/grub.cfg
|
|
else
|
|
echo "Error: Could not find /boot/grub/grub.cfg"
|
|
echo "Root device: $root"
|
|
echo "Press any key to enter GRUB command line..."
|
|
# Sleep for a very long time (interruptible by any key press)
|
|
# This provides an effective "wait for keypress" in GRUB
|
|
sleep --verbose --interruptible 99999
|
|
fi
|