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
fa19e83e
Commit
fa19e83e
authored
Sep 05, 2019
by
Mikhail Gordeev
Committed by
Michael Shigorin
Jan 13, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add BASE_BOOTARGS -- variable containing arguments to bootloader
The case at hand was the need to pass serial console parameters, see the next commit.
parent
429f1d18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
config.mk
features.in/bootloader/config.mk
+1
-0
50-bootargs
features.in/bootloader/rootfs/image-scripts.d/50-bootargs
+9
-0
config.mk
features.in/tty/config.mk
+3
-0
No files found.
features.in/bootloader/config.mk
View file @
fa19e83e
...
...
@@ -13,6 +13,7 @@ use/bootloader: use/pkgpriorities
@$(call try,BASE_BOOTLOADER,grub)
@$(call xport,BASE_BOOTLOADER)
@$(call add,BASE_LISTS,$$(BASE_BOOTLOADER))
@$(call xport,BASE_BOOTARGS)
ifeq (distro,$(IMAGE_CLASS))
@$(call add,BASE_PACKAGES,alterator-$$(BASE_BOOTLOADER))
@$(call add,PINNED_PACKAGES,alterator-$$(BASE_BOOTLOADER))
...
...
features.in/bootloader/rootfs/image-scripts.d/50-bootargs
0 → 100755
View file @
fa19e83e
#!/bin/sh -eu
if
[
-n
"
${
GLOBAL_BASE_BOOTARGS
-
}
"
]
;
then
if
[
-s
/etc/sysconfig/grub2
]
;
then
sed
-Ei
\
"s/(GRUB_CMDLINE_LINUX_DEFAULT=)(.*)(['
\"
])/
\1\2
$GLOBAL_BASE_BOOTARGS
\3
/"
\
/etc/sysconfig/grub2
fi
fi
features.in/tty/config.mk
View file @
fa19e83e
...
...
@@ -2,13 +2,16 @@ use/tty:
@$(call add_feature)
@$(call xport,TTY_DEV)
@$(call xport,TTY_RATE)
@$(call xport,BASE_BOOTARGS)
ifeq (distro,$(IMAGE_CLASS))
@$(call add,INSTALL2_PACKAGES,installer-feature-serial-stage2)
@$(call add,BASE_PACKAGES,installer-feature-serial-stage3)
endif
comma := ,
use/tty/S0 use/tty/SI0 use/tty/AMA0: use/tty/%: use/tty
@$(call add,THE_PACKAGES,agetty)
@$(call add,TTY_DEV,tty$*)
@$(call set,TTY_RATE,115200)
@$(call add,SYSLINUX_CFG,tty$*)
@$(call add,BASE_BOOTARGS,console=tty1 console=$$(TTY_DEV)$(comma)$$(TTY_RATE)n8)
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