-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
live/bootloader: add live system language selection in UEFI bootloade…
…r (GRUB) - fixes #38
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
set default=0 | ||
|
||
loadfont $prefix/dejavu-bold-16.pf2 | ||
loadfont $prefix/dejavu-bold-14.pf2 | ||
loadfont $prefix/unicode.pf2 | ||
set gfxmode=auto | ||
insmod all_video | ||
insmod gfxterm | ||
insmod png | ||
|
||
set color_normal=light-gray/black | ||
set color_highlight=white/black | ||
|
||
if [ -e /isolinux/splash.png ]; then | ||
# binary_syslinux modifies the theme file to point to the correct | ||
# background picture | ||
set theme=/boot/grub/live-theme/theme.txt | ||
elif [ -e /boot/grub/splash.png ]; then | ||
set theme=/boot/grub/live-theme/theme.txt | ||
else | ||
set menu_color_normal=cyan/blue | ||
set menu_color_highlight=white/blue | ||
fi | ||
|
||
terminal_output gfxterm | ||
|
||
insmod play | ||
play 960 440 1 0 4 440 1 | ||
|
||
# Live boot | ||
LINUX_LIVE | ||
|
||
# You can add more entries like this | ||
# menuentry "Alternate live boot" { | ||
# linux KERNEL_LIVE APPEND_LIVE custom options here | ||
# initrd INITRD_LIVE | ||
# } | ||
# menuentry "Alternate graphical installer" { | ||
# linux KERNEL_GI APPEND_GI custom options here | ||
# initrd INITRD_GI | ||
# } | ||
# menuentry "Alternate textual installer" { | ||
# linux KERNEL_DI APPEND_DI custom options here | ||
# initrd INITRD_DI | ||
# } | ||
menuentry "Live system (French)" { | ||
linux KERNEL_LIVE APPEND_LIVE locales=fr_FR.UTF-8 | ||
initrd INITRD_LIVE | ||
} | ||
|
||
|
||
|
||
# Installer (if any) | ||
LINUX_INSTALL | ||
|
||
submenu 'Advanced options...' { | ||
|
||
# More installer entries (if any) | ||
LINUX_ADVANCED_INSTALL | ||
|
||
# Memtest (if any) | ||
MEMTEST | ||
|
||
} |