diff options
Diffstat (limited to 'scripts/build/binary_disk')
-rwxr-xr-x | scripts/build/binary_disk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/build/binary_disk b/scripts/build/binary_disk index 4f444b0be..7175a543a 100755 --- a/scripts/build/binary_disk +++ b/scripts/build/binary_disk @@ -51,7 +51,13 @@ mkdir -p binary/.disk ARCHITECTURE="$(echo ${LB_ARCHITECTURES} | sed -e 's| |/|g')" DISTRIBUTION="$(echo ${LB_DISTRIBUTION} | cut -b 1 | tr '[a-z]' '[A-Z]')" DISTRIBUTION="${DISTRIBUTION}$(echo ${LB_DISTRIBUTION} | cut -b 2-)" -eval VERSION="$`echo RELEASE_${LB_DISTRIBUTION}`" + +if [ -e chroot/etc/os-release ] +then + VERSION="$(. chroot/etc/os-release && echo ${VERSION_ID})" +fi + +VERSION="${VERSION:-none}" case "${LB_MODE}" in debian) |