Skip to content

Commit

Permalink
Introduce KAIROS_ARTIFACT in bootargs.cfg and os-release (#535)
Browse files Browse the repository at this point in the history
so store the full bootable artifact name as created by the naming.sh
script in the kairos repo.

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily authored Nov 8, 2023
1 parent 5f15c21 commit e7e5761
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/static/kairos-overlay-files/collection.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.1.11"
version: "1.1.12"
10 changes: 5 additions & 5 deletions packages/static/kairos-overlay-files/files/etc/cos/bootargs.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function setSelinux {
source (loop0)/etc/os-release
set baseSelinuxCmd=""
if regexp "rockylinux|fedora|almalinux|redhat" $KAIROS_FLAVOR; then
if regexp "rockylinux|fedora|almalinux|redhat" $KAIROS_ARTIFACT; then
set baseSelinuxCmd="selinux=0"
else
# if not in recovery
Expand All @@ -15,11 +15,11 @@ function setExtraConsole {
source (loop0)/etc/os-release
set baseExtraConsole="console=ttyS0"
# rpi
if regexp "arm-rpi" $KAIROS_FLAVOR; then
if regexp "arm64-rpi" $KAIROS_ARTIFACT; then
set baseExtraConsole="console=ttyS0,115200"
fi
# nvidia orin
if regexp "arm-nvidia-jetson-agx-orin" $KAIROS_FLAVOR; then
if regexp "arm64-nvidia-jetson-agx-orin" $KAIROS_ARTIFACT; then
set baseExtraConsole="console=ttyTCU0,115200"
fi
}
Expand All @@ -28,7 +28,7 @@ function setExtraArgs {
source (loop0)/etc/os-release
set baseExtraArgs=""
# rpi
if regexp "arm-rpi" $KAIROS_FLAVOR; then
if regexp "arm64-rpi" $KAIROS_ARTIFACT; then
set baseExtraArgs="modprobe.blacklist=vc4 8250.nr_uarts=1"
fi
}
Expand Down Expand Up @@ -61,4 +61,4 @@ function setKernelCmd {
set kernel=/boot/vmlinuz
set initramfs=/boot/initrd
# set the kernelcmd dynamically
setKernelCmd
setKernelCmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ KAIROS_IMAGE_REPO="${OS_REPO}"
KAIROS_IMAGE_LABEL="${OS_LABEL}"
KAIROS_GITHUB_REPO="${GITHUB_REPO}"
KAIROS_VARIANT="${VARIANT}"
KAIROS_FLAVOR="${FLAVOR}"
KAIROS_FLAVOR="${FLAVOR}"
KAIROS_ARTIFACT="${ARTIFACT}"

0 comments on commit e7e5761

Please sign in to comment.