Blame SOURCES/0499-tests-use-XFS-as-root-filesystem-for-system-tests.patch

17b0f1
From e82e71d82496b7dd3268db62a89f215b4b38508f Mon Sep 17 00:00:00 2001
17b0f1
From: Michal Sekletar <msekleta@redhat.com>
17b0f1
Date: Mon, 24 Jul 2017 18:47:36 +0200
17b0f1
Subject: [PATCH] tests: use XFS as root filesystem for system tests
17b0f1
17b0f1
On RHEL-7 we don't have mount.ext3 in initramfs.
17b0f1
17b0f1
RHEL-only
17b0f1
17b0f1
Resolves: #1475870
17b0f1
---
17b0f1
 test/TEST-02-CRYPTSETUP/test.sh | 4 ++--
17b0f1
 test/test-functions             | 2 +-
17b0f1
 2 files changed, 3 insertions(+), 3 deletions(-)
17b0f1
17b0f1
diff --git a/test/TEST-02-CRYPTSETUP/test.sh b/test/TEST-02-CRYPTSETUP/test.sh
17b0f1
index 4be2365e2f..6e5c53d8bd 100755
17b0f1
--- a/test/TEST-02-CRYPTSETUP/test.sh
17b0f1
+++ b/test/TEST-02-CRYPTSETUP/test.sh
17b0f1
@@ -38,7 +38,7 @@ test_setup() {
17b0f1
     echo -n test >$TESTDIR/keyfile
17b0f1
     cryptsetup -q luksFormat ${LOOPDEV}p2 $TESTDIR/keyfile
17b0f1
     cryptsetup luksOpen ${LOOPDEV}p2 varcrypt <$TESTDIR/keyfile
17b0f1
-    mkfs.ext3 -L var /dev/mapper/varcrypt
17b0f1
+    mkfs.xfs -L var /dev/mapper/varcrypt
17b0f1
     mkdir -p $TESTDIR/root
17b0f1
     mount ${LOOPDEV}p1 $TESTDIR/root
17b0f1
     mkdir -p $TESTDIR/root/var
17b0f1
@@ -74,7 +74,7 @@ EOF
17b0f1
         cat $initdir/etc/crypttab | ddebug
17b0f1
 
17b0f1
         cat >>$initdir/etc/fstab <
17b0f1
-/dev/mapper/varcrypt    /var    ext3    defaults 0 1
17b0f1
+/dev/mapper/varcrypt    /var    xfs    defaults 0 1
17b0f1
 EOF
17b0f1
     )
17b0f1
     setup_nspawn_root
17b0f1
diff --git a/test/test-functions b/test/test-functions
17b0f1
index 901ff48605..f8950e31e8 100644
17b0f1
--- a/test/test-functions
17b0f1
+++ b/test/test-functions
17b0f1
@@ -150,7 +150,7 @@ create_empty_image() {
17b0f1
 ,
17b0f1
 EOF
17b0f1
 
17b0f1
-    mkfs.ext3 -L systemd "${LOOPDEV}p1"
17b0f1
+    mkfs.xfs -L systemd "${LOOPDEV}p1"
17b0f1
 }
17b0f1
 
17b0f1
 check_result_nspawn() {