Skip to content

Commit

Permalink
feat(bake): handle VERSION_ID in extension metadata file
Browse files Browse the repository at this point in the history
  • Loading branch information
donch committed Sep 7, 2023
1 parent 98a46f4 commit 023c2a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ elif [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
fi

SYSEXTNAME="$1"
VERSION_ID="${2:-}"

if [ "${FORMAT}" != "squashfs" ] && [ "${FORMAT}" != "btrfs" ] && [ "${FORMAT}" != "ext4" ] && [ "${FORMAT}" != "ext2" ]; then
echo "Expected FORMAT=squashfs, FORMAT=btrfs, FORMAT=ext4, or FORMAT=ext2, got '${FORMAT}'" >&2
Expand All @@ -36,7 +37,9 @@ fi
mkdir -p "${SYSEXTNAME}/usr/lib/extension-release.d"
{
echo "ID=${OS}"
if [ "${OS}" != "_any" ]; then
if [ "${VERSION_ID}" != "" ]; then
echo "VERSION_ID=${VERSION_ID}"
elif [ "${OS}" != "_any" ]; then
echo "SYSEXT_LEVEL=1.0"
fi
if [ "${ARCH}" != "" ]; then
Expand Down

0 comments on commit 023c2a7

Please sign in to comment.