Remove dependency on /etc/lsb-release

/etc/lsb-release doesn't always exist in cloud images and doesn't
serve any significant purpose in this element so removing the
dependency entirely.

Change-Id: I4d972074e6e10fea09a875cbc4ed4e60248d46d9
This commit is contained in:
Stephen Mulcahy 2014-04-18 11:41:22 +01:00
parent a9c0a7bf27
commit 94d2cc42c6

View File

@ -3,10 +3,6 @@
set -e
# get the cloudimg version
source $TMP_MOUNT_PATH/etc/lsb-release
echo "Current cloudimg codename is: $DISTRIB_DESCRIPTION $DISTRIB_CODENAME"
# exit directly if DIB_APT_SOURCES is not defined properly
if [ -z "$DIB_APT_SOURCES" ] ; then
echo "DIB_APT_SOURCES must be set to the location of a sources.list file you wish to use"