From 421419c7fc96df18c422102a52879dd6860725a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 10 Aug 2015 21:31:17 +0200 Subject: Getting rid of hard-coded release numbers and using /etc/os-release instead (Closes: #790860). Unfortunately VERSION_ID on testing/unstable is currently not included in /etc/os-release, see #795124. --- scripts/build/binary_syslinux | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/build/binary_syslinux') diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index 42203297b..41d7feccb 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -229,7 +229,12 @@ then esac fi -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}" _DISTRIBUTION="${LB_DISTRIBUTION}" _ARCHITECTURE="${LB_ARCHITECTURES}" -- cgit v1.2.3