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
ed62966e
Commit
ed62966e
authored
Mar 03, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: Added submenu for langs change
parent
ea262607
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
5 deletions
+30
-5
00defaults.cfg
features.in/grub/cfg.in/00defaults.cfg
+1
-0
20install2.cfg
features.in/grub/cfg.in/20install2.cfg
+1
-1
25install-vnc-connect.cfg
features.in/grub/cfg.in/25install-vnc-connect.cfg
+1
-1
25install-vnc-listen.cfg
features.in/grub/cfg.in/25install-vnc-listen.cfg
+1
-1
30live.cfg
features.in/grub/cfg.in/30live.cfg
+1
-1
32live_rw.cfg
features.in/grub/cfg.in/32live_rw.cfg
+1
-1
40lang.cfg
features.in/grub/cfg.in/40lang.cfg
+14
-0
generate.mk
features.in/grub/generate.mk
+10
-0
No files found.
features.in/grub/cfg.in/00defaults.cfg
View file @
ed62966e
...
...
@@ -4,3 +4,4 @@ insmod minicmd
insmod normal
insmod test
set timeout=@timeout@
if [ ! "$lang" ]; then lang=@LOCALE@; fi
features.in/grub/cfg.in/20install2.cfg
View file @
ed62966e
default='linux'
menuentry 'Install @relname@' --hotkey 'i' --id 'linux' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@
lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
}
features.in/grub/cfg.in/25install-vnc-connect.cfg
View file @
ed62966e
menuentry 'VNC install @relname@ (edit to set server IP address)' --id 'vncconnect' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncconnect=IP
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncconnect=IP
lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
}
features.in/grub/cfg.in/25install-vnc-listen.cfg
View file @
ed62966e
menuentry 'VNC install @relname@ (edit to set password and connect here)' --id 'vncpasswd' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncpassword=VNCPWD
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@ headless no_alt_virt_keyboard vncpassword=VNCPWD
lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
}
features.in/grub/cfg.in/30live.cfg
View file @
ed62966e
menuentry 'LiveCD (no hard disk needed)' --id 'live' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@
lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
}
...
...
features.in/grub/cfg.in/32live_rw.cfg
View file @
ed62966e
menuentry 'LiveCD with sessions support' --id 'session' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts live_rw vga=@bootvga@ @bootargs@
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts live_rw vga=@bootvga@ @bootargs@
lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
}
features.in/grub/cfg.in/40lang.cfg
0 → 100644
View file @
ed62966e
submenu "Change language (press F2)" --hotkey 'f2' {
insmod regexp
for langstr in "ru_RU=Russian" "en_US=English" "pt_BR=Portuguese" "kk_KZ=Kazakh" "uk_UA=Ukrainian"; do
regexp -s 2:langname -s 1:langcode '(.*)=(.*)' "$langstr"
menuentry "${langname}" "$langcode" {
lang="$2"
export lang
configfile ${prefix}/grub.cfg
}
done
menuentry "Return to the Main menu" {
configfile ${prefix}/grub.cfg
}
}
features.in/grub/generate.mk
View file @
ed62966e
...
...
@@ -19,6 +19,10 @@ ifndef GRUB_DIRECT
GRUB_CFG := $(GRUB_CFG) $(SUBPROFILE_DIRS) defaults fwsetup_efi
endif
ifdef LOCALE
GRUB_CFG := $(GRUB_CFG) lang
endif
DSTDIR := $(BUILDDIR)/stage1/files/boot/grub/.in
DSTCFGS := $(DSTDIR)/*.cfg
...
...
@@ -77,6 +81,12 @@ bootargs: clean
sed -i "s,@bootvga@,$(BOOTVGA)," $(DSTCFGS); \
fi; \
sed -i "s,@bootvga@,,;s,vga= ,," $(DSTCFGS)
@if [ -n "$(LOCALE)" ]; then \
sed -i "s,@LOCALE@,$(LOCALE),g" $(DSTCFGS); \
else \
sed -i "s, lang=.lang,,g" $(DSTCFGS); \
fi; \
sed -i "/lang=@LOCALE@/d" $(DSTCFGS)
clean: copy
@if [ "$(GRUB_UI)" = gfxboot ]; then \
...
...
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