richardphibel / rpms / systemd

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