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
4945e85e
Commit
4945e85e
authored
Mar 04, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: Added submenu for kernel flavour change
parent
af00ee04
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
42 additions
and
16 deletions
+42
-16
20install2.cfg
features.in/grub/cfg.in/20install2.cfg
+2
-2
25install-vnc-connect.cfg
features.in/grub/cfg.in/25install-vnc-connect.cfg
+2
-2
25install-vnc-listen.cfg
features.in/grub/cfg.in/25install-vnc-listen.cfg
+2
-2
30live.cfg
features.in/grub/cfg.in/30live.cfg
+2
-2
32live_rw.cfg
features.in/grub/cfg.in/32live_rw.cfg
+2
-2
80rescue.cfg
features.in/grub/cfg.in/80rescue.cfg
+2
-2
82rescue_rw.cfg
features.in/grub/cfg.in/82rescue_rw.cfg
+2
-2
84rescue_remote.cfg
features.in/grub/cfg.in/84rescue_remote.cfg
+2
-2
90kernel.cfg
features.in/grub/cfg.in/90kernel.cfg
+19
-0
generate.mk
features.in/grub/generate.mk
+7
-0
No files found.
features.in/grub/cfg.in/20install2.cfg
View file @
4945e85e
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@ lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@ lang=$lang
initrd@linux_suffix@ @boot_path@/full
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/25install-vnc-connect.cfg
View file @
4945e85e
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 lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
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
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/25install-vnc-listen.cfg
View file @
4945e85e
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 lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
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
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/30live.cfg
View file @
4945e85e
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@ lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
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
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/32live_rw.cfg
View file @
4945e85e
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@ lang=$lang
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
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
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/80rescue.cfg
View file @
4945e85e
menuentry 'Rescue LiveCD' --id 'rescue' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@
initrd@linux_suffix@ @boot_path@/full
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/82rescue_rw.cfg
View file @
4945e85e
menuentry 'Rescue with sessions support' --id 'rescue_session' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom,label:ALT* ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ live_rw
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
changedisk fastboot live automatic=method:cdrom,label:ALT* ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@ live_rw
initrd@linux_suffix@ @boot_path@/full
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/84rescue_remote.cfg
View file @
4945e85e
menuentry 'Rescue with remote SSH access (DHCP)' --id 'rescue_remote' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ max_loop=16 ip=dhcp port=22 rootpw=AUTO hash=@rescue_hash@
initrd@linux_suffix@ @boot_path@/full.cz
linux@linux_suffix@ @boot_path@/vmlinuz
$KFLAVOUR
changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@ max_loop=16 ip=dhcp port=22 rootpw=AUTO hash=@rescue_hash@
initrd@linux_suffix@ @boot_path@/full
$KFLAVOUR
.cz
}
features.in/grub/cfg.in/90kernel.cfg
0 → 100644
View file @
4945e85e
submenu "Change Kernel Flavour (press F5)" --hotkey 'f5' {
insmod regexp
regexp -s 1:kflavours -s 2:kflavourstr '(.*) (.*)' "@KFLAVOUR@"
menuentry "${kflavourstr}" {
KFLAVOUR=
export KFLAVOUR
configfile ${prefix}/grub.cfg
}
for kflavourstr in ${kflavours}; do
menuentry "${kflavourstr}" {
KFLAVOUR="-$1"
export KFLAVOUR
configfile ${prefix}/grub.cfg
}
done
menuentry "Return to the Main menu" {
configfile ${prefix}/grub.cfg
}
}
features.in/grub/generate.mk
View file @
4945e85e
...
...
@@ -23,6 +23,10 @@ ifdef LOCALE
GRUB_CFG := $(GRUB_CFG) lang
endif
ifneq ($(words $(KFLAVOURS)),1)
GRUB_CFG := $(GRUB_CFG) kernel
endif
DSTDIR := $(BUILDDIR)/stage1/files/boot/grub/.in
DSTCFGS := $(DSTDIR)/*.cfg
...
...
@@ -87,6 +91,9 @@ bootargs: clean
sed -i "s, lang=.lang,,g" $(DSTCFGS); \
fi; \
sed -i "/lang=@LOCALE@/d" $(DSTCFGS)
@if [ $$(echo $(KFLAVOURS) | wc -w) -gt 1 ]; then \
sed -i "s,@KFLAVOUR@,$(KFLAVOURS),g" $(DSTCFGS); \
fi
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