Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
a5c3e6d4
Verified
Commit
a5c3e6d4
authored
Nov 22, 2025
by
Kirill Unitsaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: add variable GRUB_GFXMODE
parent
57eabebd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
README
features.in/grub/README
+2
-0
01gfxterm.cfg
features.in/grub/cfg.in/01gfxterm.cfg
+1
-1
config.mk
features.in/grub/config.mk
+1
-0
generate.mk
features.in/grub/generate.mk
+3
-0
No files found.
features.in/grub/README
View file @
a5c3e6d4
...
...
@@ -21,6 +21,8 @@
* BOOTLOADER -- isolinux (реализовано с оглядкой на grub/grub4);
* GRUB_GFXMODE — разрешение интерфейса grub (например, 1920x1080,auto)
* GRUB_UI -- тип интерфейса (если указан gfxboot, то графический,
иначе текстовый);
...
...
features.in/grub/cfg.in/01gfxterm.cfg
View file @
a5c3e6d4
...
...
@@ -15,7 +15,7 @@ function load_video {
if [ -z "$GRUB_TERMINAL" ]; then
font=unicode
if loadfont "$font"; then
set gfxmode=
auto
set gfxmode=
@GRUB_GFXMODE@
load_video
insmod gfxterm
terminal_output gfxterm
...
...
features.in/grub/config.mk
View file @
a5c3e6d4
...
...
@@ -12,6 +12,7 @@ use/grub: sub/stage1 $(ISOHYBRID:%=use/isohybrid)
use/grub/ui/%: use/grub
ifeq (,$(filter-out i586 x86_64 aarch64 loongarch64,$(ARCH)))
@$(call set,GRUB_UI,$*)
@$(call try,GRUB_GFXMODE,auto)
@if [ "$*" == gfxboot ]; then \
$(call add,STAGE1_BRANDING,bootloader); \
$(call add,STAGE1_PACKAGES,grub-common); \
...
...
features.in/grub/generate.mk
View file @
a5c3e6d4
...
...
@@ -99,6 +99,9 @@ bootargs: clean
@if [ -n "$(LOCALES)" ]; then \
sed -i "s,@LOCALES@,$(LOCALES),g" $(DSTCFGS); \
fi
@if [ -n "$(GRUB_GFXMODE)" ]; then \
sed -i "s|@GRUB_GFXMODE@|$(GRUB_GFXMODE)|g" $(DSTCFGS); \
fi
@GRUBTHEME=$(GRUBTHEME); \
[ -n "$$GRUBTHEME" ] || GRUBTHEME=$$(cut -d "-" -f2 <<< $(BRANDING)); \
sed -i "s,@grubtheme@,$$GRUBTHEME,g" $(DSTCFGS)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment