vm: use $DISTRO_NAME instead of lsb_release

Use the distribution string already available as $DISTRO_NAME.

Change-Id: I4aa3b19d66cc4bed39e9778f0ed21e86743afe41
This commit is contained in:
Pino Toscano 2015-05-12 17:21:18 +02:00
parent 97954ccd4e
commit 043711e3fa

View File

@ -6,7 +6,7 @@ fi
set -eu set -eu
set -o pipefail set -o pipefail
if [ "openSUSE project" = "$(lsb_release -is)" ]; then if [ $DISTRO_NAME = 'opensuse' ] ; then
# workaround for https://bugzilla.novell.com/show_bug.cgi?id=859493 # workaround for https://bugzilla.novell.com/show_bug.cgi?id=859493
rm -f /dev/mapper/loop*_part1 rm -f /dev/mapper/loop*_part1
fi fi