mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-12 13:22:41 +00:00
Introduce KAIROS_ARTIFACT in bootargs.cfg and os-release (#535)
so store the full bootable artifact name as created by the naming.sh script in the kairos repo. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
This commit is contained in:
parent
5f15c21c5d
commit
e7e576177a
@ -1,4 +1,4 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "kairos-overlay-files"
|
- name: "kairos-overlay-files"
|
||||||
category: "static"
|
category: "static"
|
||||||
version: "1.1.11"
|
version: "1.1.12"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
function setSelinux {
|
function setSelinux {
|
||||||
source (loop0)/etc/os-release
|
source (loop0)/etc/os-release
|
||||||
set baseSelinuxCmd=""
|
set baseSelinuxCmd=""
|
||||||
if regexp "rockylinux|fedora|almalinux|redhat" $KAIROS_FLAVOR; then
|
if regexp "rockylinux|fedora|almalinux|redhat" $KAIROS_ARTIFACT; then
|
||||||
set baseSelinuxCmd="selinux=0"
|
set baseSelinuxCmd="selinux=0"
|
||||||
else
|
else
|
||||||
# if not in recovery
|
# if not in recovery
|
||||||
@ -15,11 +15,11 @@ function setExtraConsole {
|
|||||||
source (loop0)/etc/os-release
|
source (loop0)/etc/os-release
|
||||||
set baseExtraConsole="console=ttyS0"
|
set baseExtraConsole="console=ttyS0"
|
||||||
# rpi
|
# rpi
|
||||||
if regexp "arm-rpi" $KAIROS_FLAVOR; then
|
if regexp "arm64-rpi" $KAIROS_ARTIFACT; then
|
||||||
set baseExtraConsole="console=ttyS0,115200"
|
set baseExtraConsole="console=ttyS0,115200"
|
||||||
fi
|
fi
|
||||||
# nvidia orin
|
# 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"
|
set baseExtraConsole="console=ttyTCU0,115200"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ function setExtraArgs {
|
|||||||
source (loop0)/etc/os-release
|
source (loop0)/etc/os-release
|
||||||
set baseExtraArgs=""
|
set baseExtraArgs=""
|
||||||
# rpi
|
# rpi
|
||||||
if regexp "arm-rpi" $KAIROS_FLAVOR; then
|
if regexp "arm64-rpi" $KAIROS_ARTIFACT; then
|
||||||
set baseExtraArgs="modprobe.blacklist=vc4 8250.nr_uarts=1"
|
set baseExtraArgs="modprobe.blacklist=vc4 8250.nr_uarts=1"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -11,3 +11,4 @@ KAIROS_IMAGE_LABEL="${OS_LABEL}"
|
|||||||
KAIROS_GITHUB_REPO="${GITHUB_REPO}"
|
KAIROS_GITHUB_REPO="${GITHUB_REPO}"
|
||||||
KAIROS_VARIANT="${VARIANT}"
|
KAIROS_VARIANT="${VARIANT}"
|
||||||
KAIROS_FLAVOR="${FLAVOR}"
|
KAIROS_FLAVOR="${FLAVOR}"
|
||||||
|
KAIROS_ARTIFACT="${ARTIFACT}"
|
||||||
|
Loading…
Reference in New Issue
Block a user