forked from void-linux/void-mklive
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mklive, grub: add support for "platforms" in live isos
this can be used to define special platform-specific support things, like extra packages, a device tree, and cmdline. This allows creating live isos that support generic arm64 UEFI as well as ones that require special care (like the x13s)
- Loading branch information
1 parent
2fec236
commit b7e8132
Showing
6 changed files
with
187 additions
and
140 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
fi # for if [ cpuid -l ] in grub_void.cfg.pre |
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,36 @@ | ||
export voidlive | ||
|
||
set pager="1" | ||
set locale_dir="(${voidlive})/boot/grub/locale" | ||
|
||
if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then | ||
insmod all_video | ||
else | ||
insmod efi_gop | ||
insmod efi_uga | ||
insmod video_bochs | ||
insmod video_cirrus | ||
fi | ||
|
||
insmod font | ||
|
||
if loadfont "(${voidlive})/boot/grub/fonts/unicode.pf2" ; then | ||
insmod gfxterm | ||
set gfxmode="auto" | ||
|
||
terminal_input console | ||
terminal_output gfxterm | ||
|
||
insmod png | ||
background_image "(${voidlive})/boot/isolinux/@@SPLASHIMAGE@@" | ||
fi | ||
|
||
# Set default menu entry | ||
default=linux | ||
timeout=15 | ||
timeout_style=menu | ||
|
||
# GRUB init tune for accessibility | ||
play 600 988 1 1319 4 | ||
|
||
if [ cpuid -l ]; then |
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
Oops, something went wrong.