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
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
e0aa88b7
Commit
e0aa88b7
authored
Dec 04, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grub: Add EFI_BOOTARGS into BOOT/EFI/grub.cfg
Pay attention to what you are adding to the variable. No need to add language and live_rw there! Они нужны только для refind.
parent
40fb799e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
10 deletions
+25
-10
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
80rescue.cfg
features.in/grub/cfg.in/80rescue.cfg
+1
-1
82rescue_rw.cfg
features.in/grub/cfg.in/82rescue_rw.cfg
+1
-1
83rescue_fm.cfg
features.in/grub/cfg.in/83rescue_fm.cfg
+1
-1
84rescue_remote.cfg
features.in/grub/cfg.in/84rescue_remote.cfg
+1
-1
85mediacheck.cfg
features.in/grub/cfg.in/85mediacheck.cfg
+1
-1
generate.mk
features.in/grub/generate.mk
+5
-0
01-grub
features.in/grub/stage1/scripts.d/01-grub
+10
-0
No files found.
features.in/grub/cfg.in/20install2.cfg
View file @
e0aa88b7
...
...
@@ -3,7 +3,7 @@ default='linux'
menuentry 'Install @relname@' --hotkey 'i' --id 'linux' {
echo "Loading Linux vmlinuz$KFLAVOUR ..."
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@ lang=$lang
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ vga=@bootvga@ @bootargs@
@efi_bootargs@
lang=$lang
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/25install-vnc-connect.cfg
View file @
e0aa88b7
menuentry 'VNC install @relname@ (edit to set server IP address)' --id 'vncconnect' {
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
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@
@efi_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 @
e0aa88b7
menuentry 'VNC install @relname@ (edit to set password and connect here)' --id 'vncpasswd' {
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
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot automatic=method:cdrom ramdisk_size=@altinst_size@ showopts @bootargs@
@efi_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 @
e0aa88b7
menuentry 'LiveCD (no hard disk needed)' --id 'live' {
echo "Loading Linux vmlinuz$KFLAVOUR ..."
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
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@live_size@ stagename=live showopts lowmem vga=@bootvga@ @bootargs@
@efi_bootargs@
lang=$lang
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full$KFLAVOUR.cz
}
...
...
features.in/grub/cfg.in/32live_rw.cfg
View file @
e0aa88b7
menuentry 'LiveCD with sessions support' --id 'session' {
echo "Loading Linux vmlinuz$KFLAVOUR ..."
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
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@
@efi_bootargs@
lang=$lang
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/80rescue.cfg
View file @
e0aa88b7
menuentry 'Rescue LiveCD' --id 'rescue' {
echo "Loading Linux vmlinuz$KFLAVOUR ..."
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ stagename=rescue splash=0 showopts @rescue_bootargs@
@efi_bootargs@
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/82rescue_rw.cfg
View file @
e0aa88b7
menuentry 'Rescue with sessions support' --id 'rescue_session' {
echo "Loading Linux vmlinuz$KFLAVOUR ..."
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
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@
@efi_bootargs@
live_rw
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/83rescue_fm.cfg
View file @
e0aa88b7
menuentry 'Forensic mode (leave disks alone)' --id 'rescue_forensic' {
echo "Loading Linux vmlinuz$KFLAVOUR ..."
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 forensic hash=@rescue_hash@
linux@linux_suffix@ @boot_path@/vmlinuz changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@
@efi_bootargs@
max_loop=16 forensic hash=@rescue_hash@
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full.cz
}
features.in/grub/cfg.in/84rescue_remote.cfg
View file @
e0aa88b7
menuentry 'Rescue with remote SSH access (DHCP)' --id 'rescue_remote' {
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@
linux@linux_suffix@ @boot_path@/vmlinuz$KFLAVOUR changedisk fastboot live automatic=method:cdrom ramdisk_size=@rescue_size@ splash=0 showopts stagename=rescue @rescue_bootargs@
@efi_bootargs@
max_loop=16 ip=dhcp port=22 rootpw=AUTO hash=@rescue_hash@
echo 'Loading initial ramdisk ...'
initrd@linux_suffix@ @boot_path@/full$KFLAVOUR.cz
}
features.in/grub/cfg.in/85mediacheck.cfg
View file @
e0aa88b7
menuentry 'Check this media for defects' --id 'mediachk' {
linux@linux_suffix@ @boot_path@/vmlinuz changedisk live quiet lowmem automatic=method:cdrom mediacheck=1 stagename=mediacheck showopts @bootargs@
linux@linux_suffix@ @boot_path@/vmlinuz changedisk live quiet lowmem automatic=method:cdrom mediacheck=1 stagename=mediacheck showopts @bootargs@
@efi_bootargs@
initrd@linux_suffix@ @boot_path@/full.cz
}
features.in/grub/generate.mk
View file @
e0aa88b7
...
...
@@ -73,8 +73,13 @@ distro: bootargs
# pass over additional parameters, if any
bootargs: clean
@if [ -n "$(EFI_BOOTARGS)" ]; then \
echo "$(EFI_BOOTARGS)" > $(DSTDIR)/EFI_BOOTARGS; \
fi
@if [ -n "$(STAGE2_BOOTARGS)" ]; then \
sed -i "s,@bootargs@,$(STAGE2_BOOTARGS)," $(DSTCFGS); \
[ -f $(DSTDIR)/EFI_BOOTARGS ] && \
sed -i "s/$(STAGE2_BOOTARGS)//" $(DSTDIR)/EFI_BOOTARGS; \
fi; \
sed -i "s,@bootargs@,," $(DSTCFGS)
@if [ -n "$(RESCUE_BOOTARGS)" ]; then \
...
...
features.in/grub/stage1/scripts.d/01-grub
View file @
e0aa88b7
...
...
@@ -5,6 +5,8 @@
CFG
=
"
$WORKDIR
/boot/grub/grub.cfg"
CFG_EFI
=
"
$WORKDIR
/EFI/BOOT/grub.cfg"
if
[
-n
"
$GLOBAL_EFI_BOOTLOADER
"
-a
!
"
$GLOBAL_EFI_BOOTLOADER
"
=
"grub-efi"
]
;
then
rm
-fr
"
$WORKDIR
/boot"
exit
0
...
...
@@ -64,11 +66,19 @@ fi
if
[
-f
"
$CFG
"
]
;
then
default_change
"
$CFG
"
sed
-i
's,@boot_path@,/boot,g'
"
$CFG
"
sed
-i
's,@efi_bootargs@,,g'
"
$CFG
"
fi
if
[
-f
.in/EFI_BOOTARGS
]
;
then
EFI_BOOTARGS
=
$(
cat
.in/EFI_BOOTARGS
)
fi
if
[
-f
"
$CFG_EFI
"
]
;
then
default_change
"
$CFG_EFI
"
sed
-i
's,@boot_path@,/EFI/BOOT,g'
"
$CFG_EFI
"
[
-n
"
$EFI_BOOTARGS
"
]
&&
sed
-i
"s,@efi_bootargs@,
$EFI_BOOTARGS
,g"
"
$CFG_EFI
"
sed
-i
"s, @efi_bootargs@,,g"
"
$CFG_EFI
"
fi
# change @linux_suffix@
...
...
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