diff options
Diffstat (limited to 'scripts/build/source_disk')
-rwxr-xr-x | scripts/build/source_disk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/build/source_disk b/scripts/build/source_disk index 6cf99e0c0..eaaf7d2dd 100755 --- a/scripts/build/source_disk +++ b/scripts/build/source_disk @@ -51,7 +51,13 @@ mkdir -p source/.disk 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) |