From 5524a7ce9a9be6f5720d29156b3859388e92d350 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Sun, 9 Feb 2014 13:56:41 -0800 Subject: [PATCH] fix(common): Define VERSION_ID and BUILD_ID Scripts can now use COREOS_VERSION_ID to get the base version instead of having to strip off the BUILD_ID that is appended for unofficial builds. --- build_library/set_lsb_release | 6 ++---- common.sh | 6 ++++-- tag_release | 5 +---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/build_library/set_lsb_release b/build_library/set_lsb_release index 49fea724b5..b29e25e213 100755 --- a/build_library/set_lsb_release +++ b/build_library/set_lsb_release @@ -90,14 +90,12 @@ EOF # Aaaannd for the new systemd world order # os-release provides a separate build-id field, so split it from version OS_ID=$(tr '[:upper:]' '[:lower:]' <<<"$COREOS_VERSION_NAME") -OS_VERSION_ID="${COREOS_VERSION_STRING%%+*}" -OS_BUILD_ID="${COREOS_VERSION_STRING#*+}" sudo_clobber "${ROOT_FS_DIR}/etc/os-release" <