summaryrefslogtreecommitdiff
path: root/init-distro-rid.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-distro-rid.sh')
-rwxr-xr-xinit-distro-rid.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/init-distro-rid.sh b/init-distro-rid.sh
index dc9bb04e36..49d8981c4f 100755
--- a/init-distro-rid.sh
+++ b/init-distro-rid.sh
@@ -56,7 +56,13 @@ initNonPortableDistroRid()
VERSION_ID=${VERSION_ID%.*}
fi
- nonPortableBuildID="${ID}.${VERSION_ID}-${buildArch}"
+ if [ -z ${VERSION_ID+x} ]; then
+ # Rolling release distros do not set VERSION_ID, so omit
+ # it here to be consistent with everything else.
+ nonPortableBuildID="${ID}-${buildArch}"
+ else
+ nonPortableBuildID="${ID}.${VERSION_ID}-${buildArch}"
+ fi
fi
elif [ -e "${rootfsDir}/etc/redhat-release" ]; then