Blame SOURCES/0089-t6000-dm-Stop-using-private-lvm-root.patch

96b922
From dd07c39b0845bd8542fc38e92da84a5180ad37dc Mon Sep 17 00:00:00 2001
96b922
From: "Brian C. Lane" <bcl@redhat.com>
96b922
Date: Fri, 11 Jan 2019 12:13:46 -0800
96b922
Subject: [PATCH] t6000-dm: Stop using private lvm root
96b922
96b922
On Fedora 30 it has stopped working, and really isn't necessary as long
96b922
as our device names are unique.
96b922
96b922
Related: rhbz#1653912
96b922
---
96b922
 tests/t6000-dm.sh | 6 +-----
96b922
 1 file changed, 1 insertion(+), 5 deletions(-)
96b922
96b922
diff --git a/tests/t6000-dm.sh b/tests/t6000-dm.sh
96b922
index 5b29660..c260b96 100755
96b922
--- a/tests/t6000-dm.sh
96b922
+++ b/tests/t6000-dm.sh
96b922
@@ -19,10 +19,6 @@
96b922
 . "${srcdir=.}/init.sh"; path_prepend_ ../parted
96b922
 
96b922
 require_root_
96b922
-lvm_init_root_dir_
96b922
-
96b922
-test "x$ENABLE_DEVICE_MAPPER" = xyes \
96b922
-  || skip_ "no device-mapper support"
96b922
 
96b922
 # Device maps names - should be random to not conflict with existing ones on
96b922
 # the system
96b922
@@ -71,7 +67,7 @@ for type in linear ; do
96b922
 
96b922
   # setup: create a mapping
96b922
   echo "$dmsetup_cmd" | dmsetup create "$type_kwd" || fail=1
96b922
-  dev="$DM_DEV_DIR/mapper/$type_kwd"
96b922
+  dev="/dev/mapper/$type_kwd"
96b922
 
96b922
   # Create msdos partition table
96b922
   parted -s $dev mklabel msdos > out 2>&1 || fail=1
96b922
-- 
96b922
2.20.1
96b922