diff options
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/binary_disk | 8 | ||||
-rwxr-xr-x | scripts/build/binary_syslinux | 7 | ||||
-rwxr-xr-x | scripts/build/installer_debian-installer | 6 | ||||
-rwxr-xr-x | scripts/build/source_disk | 8 |
4 files changed, 25 insertions, 4 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) 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}" diff --git a/scripts/build/installer_debian-installer b/scripts/build/installer_debian-installer index 84726ceae..5445753da 100755 --- a/scripts/build/installer_debian-installer +++ b/scripts/build/installer_debian-installer @@ -663,7 +663,11 @@ then # Generating release file mv binary chroot/root - eval _VERSION="$`echo RELEASE_${LB_PARENT_DISTRIBUTION}`" + if [ -e chroot/etc/os-release ] + then + _VERSION="$(. chroot/etc/os-release && echo ${VERSION_ID})" + fi + if [ -n "${_VERSION}" ]; then _LB_APT_VERSION_OPT='-o APT::FTPArchive::Release::Version="'"${_VERSION}"'"' fi 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) |