mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 12:33:02 +02:00
Add support for overriding the compatible string
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -52,6 +52,17 @@ config INFIX_IMAGE_ID
|
|||||||
Mandatory. When INFIX_RELEASE is set, this string is appended to
|
Mandatory. When INFIX_RELEASE is set, this string is appended to
|
||||||
the IMAGE_ID with a '-' separator.
|
the IMAGE_ID with a '-' separator.
|
||||||
|
|
||||||
|
config INFIX_COMPATIBLE
|
||||||
|
string "Operating system compatible string"
|
||||||
|
default "${INFIX_IMAGE_ID}"
|
||||||
|
help
|
||||||
|
A lower-case string (no spaces or other characters outside of 0–9,
|
||||||
|
a–z, ".", "_" and "-"), used for image identification at upgrade.
|
||||||
|
E.g., the RAUC [system] compatible string.
|
||||||
|
|
||||||
|
Mandatory. Defaults to $INFIX_IMAGE_ID, which in turn is composed
|
||||||
|
of $INFIX_ID-$BR2_ARCH.
|
||||||
|
|
||||||
config INFIX_TAGLINE
|
config INFIX_TAGLINE
|
||||||
string "Operating system tagline"
|
string "Operating system tagline"
|
||||||
default "Infix -- a Network Operating System"
|
default "Infix -- a Network Operating System"
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "$TARGET_DIR/etc/rauc/system.conf" ]; then
|
if [ -f "$TARGET_DIR/etc/rauc/system.conf" ]; then
|
||||||
sed -i "s/compatible=.*/compatible=$NAME/" "$TARGET_DIR/etc/rauc/system.conf"
|
sed -i "s/compatible=.*/compatible=$INFIX_COMPATIBLE/" "$TARGET_DIR/etc/rauc/system.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This is a symlink to /usr/lib/os-release, so we remove this to keep
|
# This is a symlink to /usr/lib/os-release, so we remove this to keep
|
||||||
|
|||||||
Reference in New Issue
Block a user