From 043711e3fa62a8c7597a268c0031b628d48e662f Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 12 May 2015 17:21:18 +0200 Subject: [PATCH] vm: use $DISTRO_NAME instead of lsb_release Use the distribution string already available as $DISTRO_NAME. Change-Id: I4aa3b19d66cc4bed39e9778f0ed21e86743afe41 --- elements/vm/finalise.d/50-remove-bogus-udev-links | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/vm/finalise.d/50-remove-bogus-udev-links b/elements/vm/finalise.d/50-remove-bogus-udev-links index 535e31e1f..10bf1204d 100755 --- a/elements/vm/finalise.d/50-remove-bogus-udev-links +++ b/elements/vm/finalise.d/50-remove-bogus-udev-links @@ -6,7 +6,7 @@ fi set -eu 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 rm -f /dev/mapper/loop*_part1 fi