mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
43 lines
1.1 KiB
INI
43 lines
1.1 KiB
INI
# GRUB Configuration for SparkOS
|
|
|
|
# Load essential modules
|
|
insmod part_gpt
|
|
insmod fat
|
|
insmod ext2
|
|
insmod linux
|
|
insmod all_video
|
|
insmod video_bochs
|
|
insmod video_cirrus
|
|
insmod gfxterm
|
|
|
|
# Set terminal and video modes
|
|
terminal_input console
|
|
terminal_output console
|
|
set gfxmode=auto
|
|
set gfxpayload=keep
|
|
|
|
# Boot menu settings
|
|
set timeout=5
|
|
set default=0
|
|
|
|
# Show countdown message
|
|
echo "SparkOS Boot Menu - Starting in $timeout seconds..."
|
|
|
|
menuentry "SparkOS" {
|
|
echo "Loading SparkOS kernel..."
|
|
linux /boot/vmlinuz root=LABEL=@ROOT_LABEL@ ro init=/sbin/init console=tty0 console=ttyS0,115200n8
|
|
initrd /boot/initrd.img
|
|
}
|
|
|
|
menuentry "SparkOS (Verbose Mode)" {
|
|
echo "Loading SparkOS kernel in verbose mode..."
|
|
linux /boot/vmlinuz root=LABEL=@ROOT_LABEL@ ro init=/sbin/init console=tty0 console=ttyS0,115200n8 debug loglevel=7
|
|
initrd /boot/initrd.img
|
|
}
|
|
|
|
menuentry "SparkOS (Recovery Mode)" {
|
|
echo "Loading SparkOS kernel in recovery mode..."
|
|
linux /boot/vmlinuz root=LABEL=@ROOT_LABEL@ rw init=/bin/sh console=tty0 console=ttyS0,115200n8
|
|
initrd /boot/initrd.img
|
|
}
|