Harald Hoyer 61c497
From bb278147cfc969159fa5f44768fcd1fd5fb494fc Mon Sep 17 00:00:00 2001
Harald Hoyer 61c497
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 61c497
Date: Thu, 14 Mar 2013 18:29:19 +0100
Harald Hoyer 61c497
Subject: [PATCH] fixed testsuite
Harald Hoyer 61c497
Harald Hoyer 61c497
---
Harald Hoyer 61c497
 test/TEST-01-BASIC/test.sh        |  4 ++--
Harald Hoyer 61c497
 test/TEST-02-SYSTEMD/test.sh      |  6 +++---
Harald Hoyer 61c497
 test/TEST-03-USR-MOUNT/test.sh    |  4 ++--
Harald Hoyer 61c497
 test/TEST-04-FULL-SYSTEMD/test.sh |  6 +++---
Harald Hoyer 61c497
 test/TEST-10-RAID/test.sh         |  4 ++--
Harald Hoyer 61c497
 test/TEST-11-LVM/test.sh          |  6 +++---
Harald Hoyer 61c497
 test/TEST-12-RAID-DEG/test.sh     |  6 +++---
Harald Hoyer 61c497
 test/TEST-13-ENC-RAID-LVM/test.sh | 10 +++++-----
Harald Hoyer 61c497
 test/TEST-15-BTRFSRAID/test.sh    |  9 ++++-----
Harald Hoyer 61c497
 test/TEST-16-DMSQUASH/test.sh     |  2 +-
Harald Hoyer 61c497
 test/TEST-20-NFS/test.sh          |  4 ++--
Harald Hoyer 61c497
 test/TEST-30-ISCSI/test.sh        |  8 ++++----
Harald Hoyer 61c497
 test/TEST-40-NBD/create-root.sh   |  2 +-
Harald Hoyer 61c497
 test/TEST-40-NBD/test.sh          | 17 +++++++++--------
Harald Hoyer 61c497
 test/TEST-50-MULTINIC/test.sh     |  4 ++--
Harald Hoyer 61c497
 15 files changed, 46 insertions(+), 46 deletions(-)
Harald Hoyer 61c497
Harald Hoyer 61c497
diff --git a/test/TEST-01-BASIC/test.sh b/test/TEST-01-BASIC/test.sh
Harald Hoyer 61c497
index 7ce4f9d..7727cd0 100755
Harald Hoyer 61c497
--- a/test/TEST-01-BASIC/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-01-BASIC/test.sh
Harald Hoyer 61c497
@@ -11,7 +11,7 @@ test_run() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext3 \
Harald Hoyer 61c497
 	-hdb $TESTDIR/result \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-watchdog i6300esb -watchdog-action poweroff \
Harald Hoyer 61c497
 	-append "root=LABEL=dracut rw systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.debug console=ttyS0,115200n81 $DEBUGFAIL" \
Harald Hoyer 61c497
@@ -70,7 +70,7 @@ test_setup() {
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext3 \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rw rootfstype=ext3 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
diff --git a/test/TEST-02-SYSTEMD/test.sh b/test/TEST-02-SYSTEMD/test.sh
Harald Hoyer 61c497
index 6defa08..459cf03 100755
Harald Hoyer 61c497
--- a/test/TEST-02-SYSTEMD/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-02-SYSTEMD/test.sh
Harald Hoyer 61c497
@@ -8,7 +8,7 @@ KVERSION=${KVERSION-$(uname -r)}
Harald Hoyer 61c497
 test_run() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext3 \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=LABEL=dracut rw loglevel=77 systemd.log_level=debug systemd.log_target=console rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug init=/sbin/init $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -66,9 +66,9 @@ test_setup() {
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext3 \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-	-append "root=/dev/dracut/root rw rootfstype=ext3 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+	-append "root=/dev/fakeroot rw rootfstype=ext3 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/root.ext3 || return 1
Harald Hoyer 61c497
 
Harald Hoyer 61c497
diff --git a/test/TEST-03-USR-MOUNT/test.sh b/test/TEST-03-USR-MOUNT/test.sh
Harald Hoyer 61c497
index 0dcd13c..680720b 100755
Harald Hoyer 61c497
--- a/test/TEST-03-USR-MOUNT/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-03-USR-MOUNT/test.sh
Harald Hoyer 61c497
@@ -18,7 +18,7 @@ client_run() {
Harald Hoyer 61c497
 	-hda $TESTDIR/root.btrfs \
Harald Hoyer 61c497
 	-hdb $TESTDIR/usr.btrfs \
Harald Hoyer 61c497
 	-hdc $TESTDIR/result \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-watchdog i6300esb -watchdog-action poweroff \
Harald Hoyer 61c497
 	-append "root=LABEL=dracut $client_opts quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
Harald Hoyer 61c497
@@ -105,7 +105,7 @@ test_setup() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.btrfs \
Harald Hoyer 61c497
 	-hdb $TESTDIR/usr.btrfs \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rw rootfstype=btrfs quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh
Harald Hoyer 61c497
index 0b8e999..d3dc7ef 100755
Harald Hoyer 61c497
--- a/test/TEST-04-FULL-SYSTEMD/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-04-FULL-SYSTEMD/test.sh
Harald Hoyer 61c497
@@ -20,7 +20,7 @@ client_run() {
Harald Hoyer 61c497
 	-hda $TESTDIR/root.btrfs \
Harald Hoyer 61c497
 	-hdb $TESTDIR/usr.btrfs \
Harald Hoyer 61c497
 	-hdc $TESTDIR/result \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=LABEL=dracut $client_opts rd.retry=3 console=ttyS0,115200n81 selinux=0 $DEBUGOUT $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -247,9 +247,9 @@ EOF
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.btrfs \
Harald Hoyer 61c497
 	-hdb $TESTDIR/usr.btrfs \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-	-append "root=/dev/dracut/root rw rootfstype=btrfs quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+	-append "root=/dev/fakeroot rw rootfstype=btrfs quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/root.btrfs || return 1
Harald Hoyer 61c497
 
Harald Hoyer 61c497
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
Harald Hoyer 61c497
index b71cf9d..e11c518 100755
Harald Hoyer 61c497
--- a/test/TEST-10-RAID/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-10-RAID/test.sh
Harald Hoyer 61c497
@@ -10,7 +10,7 @@ test_run() {
Harald Hoyer 61c497
     DISKIMAGE=$TESTDIR/TEST-10-RAID-root.img
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $DISKIMAGE \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rd.auto rw rd.retry=10 console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -67,7 +67,7 @@ test_setup() {
Harald Hoyer 61c497
     # Invoke KVM and/or QEMU to actually create the target filesystem.
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $DISKIMAGE \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
 	-append "root=/dev/cannotreach rw rootfstype=ext2 console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
diff --git a/test/TEST-11-LVM/test.sh b/test/TEST-11-LVM/test.sh
Harald Hoyer 61c497
index c40b4df..d876e55 100755
Harald Hoyer 61c497
--- a/test/TEST-11-LVM/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-11-LVM/test.sh
Harald Hoyer 61c497
@@ -9,7 +9,7 @@ KVERSION=${KVERSION-$(uname -r)}
Harald Hoyer 61c497
 test_run() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext2 \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rw rd.auto=1 quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -61,9 +61,9 @@ test_setup() {
Harald Hoyer 61c497
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
Harald Hoyer 61c497
     rm -rf $TESTDIR/overlay
Harald Hoyer 61c497
     # Invoke KVM and/or QEMU to actually create the target filesystem.
Harald Hoyer 61c497
-    $testdir/run-qemu -hda $TESTDIR/root.ext2 -m 256M -nographic -net none \
Harald Hoyer 61c497
+    $testdir/run-qemu -hda $TESTDIR/root.ext2 -m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-	-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+	-append "root=/dev/fakeroot rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/root.ext2 || return 1
Harald Hoyer 61c497
     (
Harald Hoyer 61c497
diff --git a/test/TEST-12-RAID-DEG/test.sh b/test/TEST-12-RAID-DEG/test.sh
Harald Hoyer 61c497
index 7e4b804..1eae41a 100755
Harald Hoyer 61c497
--- a/test/TEST-12-RAID-DEG/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-12-RAID-DEG/test.sh
Harald Hoyer 61c497
@@ -15,7 +15,7 @@ client_run() {
Harald Hoyer 61c497
     cp --sparse=always --reflink=auto $TESTDIR/disk3.img $TESTDIR/disk3.img.new
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
-	-hda $TESTDIR/root.ext2 -m 256M -nographic \
Harald Hoyer 61c497
+	-hda $TESTDIR/root.ext2 -m 256M -nographic  -smp 2 \
Harald Hoyer 61c497
 	-hdc $TESTDIR/disk2.img.new \
Harald Hoyer 61c497
 	-hdd $TESTDIR/disk3.img.new \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
@@ -106,9 +106,9 @@ test_setup() {
Harald Hoyer 61c497
 	-hdb $TESTDIR/disk1.img \
Harald Hoyer 61c497
 	-hdc $TESTDIR/disk2.img \
Harald Hoyer 61c497
 	-hdd $TESTDIR/disk3.img \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-	-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+	-append "root=/dev/fakeroot rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/root.ext2 || return 1
Harald Hoyer 61c497
diff --git a/test/TEST-13-ENC-RAID-LVM/test.sh b/test/TEST-13-ENC-RAID-LVM/test.sh
Harald Hoyer 61c497
index e5d3939..b8fc7ff 100755
Harald Hoyer 61c497
--- a/test/TEST-13-ENC-RAID-LVM/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-13-ENC-RAID-LVM/test.sh
Harald Hoyer 61c497
@@ -17,7 +17,7 @@ test_run() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext2 \
Harald Hoyer 61c497
 	-hdb $TESTDIR/check-success.img \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 rd.debug rootwait $LUKSARGS $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -30,7 +30,7 @@ test_run() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext2 \
Harald Hoyer 61c497
 	-hdb $TESTDIR/check-success.img \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -43,7 +43,7 @@ test_run() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.ext2 \
Harald Hoyer 61c497
 	-hdb $TESTDIR/check-success.img \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=/dev/dracut/root rw quiet rd.auto rd.retry=10 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL rd.luks.uuid=failme" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
@@ -98,9 +98,9 @@ test_setup() {
Harald Hoyer 61c497
 	-f $TESTDIR/initramfs.makeroot $KVERSION || return 1
Harald Hoyer 61c497
     rm -rf $TESTDIR/overlay
Harald Hoyer 61c497
     # Invoke KVM and/or QEMU to actually create the target filesystem.
Harald Hoyer 61c497
-    $testdir/run-qemu -hda $TESTDIR/root.ext2 -m 256M -nographic -net none \
Harald Hoyer 61c497
+    $testdir/run-qemu -hda $TESTDIR/root.ext2 -m 256M -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-	-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+	-append "root=/dev/fakeroot rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/root.ext2 || return 1
Harald Hoyer 61c497
     cryptoUUIDS=$(grep --binary-files=text  -m 3 ID_FS_UUID $TESTDIR/root.ext2)
Harald Hoyer 61c497
diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer 61c497
index 981f919..8f013d5 100755
Harald Hoyer 61c497
--- a/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-15-BTRFSRAID/test.sh
Harald Hoyer 61c497
@@ -9,9 +9,9 @@ test_run() {
Harald Hoyer 61c497
     DISKIMAGE=$TESTDIR/TEST-15-BTRFSRAID-root.img
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $DISKIMAGE \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M  -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
-	-append "root=LABEL=root rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug  $DEBUGFAIL" \
Harald Hoyer 61c497
+	-append "root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-success $DISKIMAGE || return 1
Harald Hoyer 61c497
 }
Harald Hoyer 61c497
@@ -67,9 +67,9 @@ test_setup() {
Harald Hoyer 61c497
     # Invoke KVM and/or QEMU to actually create the target filesystem.
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
 	-hda $DISKIMAGE \
Harald Hoyer 61c497
-	-m 256M -nographic -net none \
Harald Hoyer 61c497
+	-m 256M  -smp 2 -nographic -net none \
Harald Hoyer 61c497
 	-kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-	-append "root=LABEL=root rw quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+	-append "root=/dev/fakeroot rw quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $DISKIMAGE || return 1
Harald Hoyer 61c497
@@ -79,7 +79,6 @@ test_setup() {
Harald Hoyer 61c497
 	. $basedir/dracut-functions.sh
Harald Hoyer 61c497
 	dracut_install poweroff shutdown
Harald Hoyer 61c497
 	inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 61c497
-	inst ./cryptroot-ask.sh /sbin/cryptroot-ask
Harald Hoyer 61c497
 	inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 61c497
     )
Harald Hoyer 61c497
     sudo $basedir/dracut.sh -l -i $TESTDIR/overlay / \
Harald Hoyer 61c497
diff --git a/test/TEST-16-DMSQUASH/test.sh b/test/TEST-16-DMSQUASH/test.sh
Harald Hoyer 61c497
index 9c4f356..1f0854e 100755
Harald Hoyer 61c497
--- a/test/TEST-16-DMSQUASH/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-16-DMSQUASH/test.sh
Harald Hoyer 61c497
@@ -19,7 +19,7 @@ test_run() {
Harald Hoyer 61c497
 	-boot order=d \
Harald Hoyer 61c497
 	-cdrom $TESTDIR/livecd.iso \
Harald Hoyer 61c497
 	-hda $TESTDIR/root.img \
Harald Hoyer 61c497
-	-m 256M -nographic \
Harald Hoyer 61c497
+	-m 256M -smp 2 -nographic \
Harald Hoyer 61c497
 	-net none -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
 	-append "root=live:CDLABEL=LiveCD live rw quiet rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \
Harald Hoyer 61c497
 	-initrd $TESTDIR/initramfs.testing
Harald Hoyer 61c497
diff --git a/test/TEST-20-NFS/test.sh b/test/TEST-20-NFS/test.sh
Harald Hoyer 61c497
index 5e32d7c..daf5bac 100755
Harald Hoyer 61c497
--- a/test/TEST-20-NFS/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-20-NFS/test.sh
Harald Hoyer 61c497
@@ -17,7 +17,7 @@ run_server() {
Harald Hoyer 61c497
     fsck -a $TESTDIR/server.ext3 || return 1
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
         -hda $TESTDIR/server.ext3 \
Harald Hoyer 61c497
-        -m 256M \
Harald Hoyer 61c497
+        -m 256M -smp 2 \
Harald Hoyer 61c497
         -nographic \
Harald Hoyer 61c497
         -net nic,macaddr=52:54:00:12:34:56,model=e1000 \
Harald Hoyer 61c497
         -net socket,listen=127.0.0.1:12320 \
Harald Hoyer 61c497
@@ -54,7 +54,7 @@ client_test() {
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
         -hda $TESTDIR/client.img \
Harald Hoyer 61c497
-        -m 256M -nographic \
Harald Hoyer 61c497
+        -m 256M -smp 2 -nographic \
Harald Hoyer 61c497
         -net nic,macaddr=$mac,model=e1000 \
Harald Hoyer 61c497
         -net socket,connect=127.0.0.1:12320 \
Harald Hoyer 61c497
         -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
Harald Hoyer 61c497
index c1febc9..f6893a8 100755
Harald Hoyer 61c497
--- a/test/TEST-30-ISCSI/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-30-ISCSI/test.sh
Harald Hoyer 61c497
@@ -16,7 +16,7 @@ run_server() {
Harald Hoyer 61c497
         -hdb $TESTDIR/root.ext3 \
Harald Hoyer 61c497
         -hdc $TESTDIR/iscsidisk2.img \
Harald Hoyer 61c497
         -hdd $TESTDIR/iscsidisk3.img \
Harald Hoyer 61c497
-        -m 256M -nographic \
Harald Hoyer 61c497
+        -m 256M  -smp 2 -nographic \
Harald Hoyer 61c497
         -serial $SERIAL \
Harald Hoyer 61c497
         -net nic,macaddr=52:54:00:12:34:56,model=e1000 \
Harald Hoyer 61c497
         -net socket,listen=127.0.0.1:12330 \
Harald Hoyer 61c497
@@ -41,7 +41,7 @@ run_client() {
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
         -hda $TESTDIR/client.img \
Harald Hoyer 61c497
-        -m 256M -nographic \
Harald Hoyer 61c497
+        -m 256M -smp 2 -nographic \
Harald Hoyer 61c497
         -net nic,macaddr=52:54:00:12:34:00,model=e1000 \
Harald Hoyer 61c497
         -net socket,connect=127.0.0.1:12330 \
Harald Hoyer 61c497
         -kernel /boot/vmlinuz-$KVERSION \
Harald Hoyer 61c497
@@ -147,9 +147,9 @@ test_setup() {
Harald Hoyer 61c497
         -hdb $TESTDIR/client.img \
Harald Hoyer 61c497
         -hdc $TESTDIR/iscsidisk2.img \
Harald Hoyer 61c497
         -hdd $TESTDIR/iscsidisk3.img \
Harald Hoyer 61c497
-        -m 256M -nographic -net none \
Harald Hoyer 61c497
+        -smp 2 -m 256M -nographic -net none \
Harald Hoyer 61c497
         -kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-        -append "root=/dev/dracut/root rw rootfstype=ext3 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+        -append "root=/dev/fakeroot rw rootfstype=ext3 quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
         -initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/client.img || return 1
Harald Hoyer 61c497
     rm $TESTDIR/client.img
Harald Hoyer 61c497
diff --git a/test/TEST-40-NBD/create-root.sh b/test/TEST-40-NBD/create-root.sh
Harald Hoyer 61c497
index 9c1c09e..62188d7 100755
Harald Hoyer 61c497
--- a/test/TEST-40-NBD/create-root.sh
Harald Hoyer 61c497
+++ b/test/TEST-40-NBD/create-root.sh
Harald Hoyer 61c497
@@ -13,7 +13,7 @@ lvm pvcreate -ff  -y /dev/mapper/dracut_crypt_test && \
Harald Hoyer 61c497
 lvm vgcreate dracut /dev/mapper/dracut_crypt_test && \
Harald Hoyer 61c497
 lvm lvcreate -l 100%FREE -n root dracut && \
Harald Hoyer 61c497
 lvm vgchange -ay && \
Harald Hoyer 61c497
-mke2fs -j /dev/dracut/root && \
Harald Hoyer 61c497
+mke2fs -L dracut -j /dev/dracut/root && \
Harald Hoyer 61c497
 /sbin/tune2fs -e continue /dev/dracut/root && \
Harald Hoyer 61c497
 mkdir -p /sysroot && \
Harald Hoyer 61c497
 mount /dev/dracut/root /sysroot && \
Harald Hoyer 61c497
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
Harald Hoyer 61c497
index dcff8f7..dae65f2 100755
Harald Hoyer 61c497
--- a/test/TEST-40-NBD/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-40-NBD/test.sh
Harald Hoyer 61c497
@@ -18,7 +18,7 @@ run_server() {
Harald Hoyer 61c497
         -hda $TESTDIR/server.ext2 \
Harald Hoyer 61c497
         -hdb $TESTDIR/nbd.ext2 \
Harald Hoyer 61c497
         -hdc $TESTDIR/encrypted.ext2 \
Harald Hoyer 61c497
-        -m 256M -nographic \
Harald Hoyer 61c497
+        -m 256M -smp 2 -nographic \
Harald Hoyer 61c497
         -net nic,macaddr=52:54:00:12:34:56,model=e1000 \
Harald Hoyer 61c497
         -net socket,listen=127.0.0.1:12340 \
Harald Hoyer 61c497
         -serial $SERIAL \
Harald Hoyer 61c497
@@ -55,7 +55,7 @@ client_test() {
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
         -hda $TESTDIR/flag.img \
Harald Hoyer 61c497
-        -m 512M \
Harald Hoyer 61c497
+        -m 512M -smp 2 \
Harald Hoyer 61c497
         -nographic \
Harald Hoyer 61c497
         -net nic,macaddr=$mac,model=e1000 \
Harald Hoyer 61c497
         -net socket,connect=127.0.0.1:12340 \
Harald Hoyer 61c497
@@ -166,16 +166,16 @@ client_run() {
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     . $TESTDIR/luks.uuid
Harald Hoyer 61c497
 
Harald Hoyer 61c497
-    client_test "NBD root=/dev/dracut/root netroot=nbd:IP:port" \
Harald Hoyer 61c497
+    client_test "NBD root=LABEL=dracut netroot=nbd:IP:port" \
Harald Hoyer 61c497
         52:54:00:12:34:00 \
Harald Hoyer 61c497
-        "root=/dev/dracut/root rd.luks.uuid=$ID_FS_UUID rd.lv.vg=dracut netroot=nbd:192.168.50.1:2001" || return 1
Harald Hoyer 61c497
+        "root=LABEL=dracut rd.luks.uuid=$ID_FS_UUID rd.lv.vg=dracut netroot=nbd:192.168.50.1:2001" || return 1
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     # XXX This should be ext2,errors=panic but that doesn't currently
Harald Hoyer 61c497
     # XXX work when you have a real root= line in addition to netroot=
Harald Hoyer 61c497
     # XXX How we should work here needs clarification
Harald Hoyer 61c497
-    client_test "NBD root=/dev/dracut/root netroot=dhcp (w/ fstype and opts)" \
Harald Hoyer 61c497
+    client_test "NBD root=LABEL=dracut netroot=dhcp (w/ fstype and opts)" \
Harald Hoyer 61c497
         52:54:00:12:34:05 \
Harald Hoyer 61c497
-        "root=/dev/dracut/root  rd.luks.uuid=$ID_FS_UUID rd.lv.vg=dracut netroot=dhcp" || return 1
Harald Hoyer 61c497
+        "root=LABEL=dracut rd.luks.uuid=$ID_FS_UUID rd.lv.vg=dracut netroot=dhcp" || return 1
Harald Hoyer 61c497
 
Harald Hoyer 61c497
     if [[ -s server.pid ]]; then
Harald Hoyer 61c497
         sudo kill -TERM $(cat $TESTDIR/server.pid)
Harald Hoyer 61c497
@@ -213,6 +213,7 @@ make_encrypted_root() {
Harald Hoyer 61c497
         export initdir=$TESTDIR/overlay
Harald Hoyer 61c497
         . $basedir/dracut-functions.sh
Harald Hoyer 61c497
         dracut_install mke2fs poweroff cp umount tune2fs
Harald Hoyer 61c497
+        inst_hook emergency 000 ./hard-off.sh
Harald Hoyer 61c497
         inst_hook initqueue 01 ./create-root.sh
Harald Hoyer 61c497
         inst_hook initqueue/finished 01 ./finished-false.sh
Harald Hoyer 61c497
         inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
Harald Hoyer 61c497
@@ -231,10 +232,10 @@ make_encrypted_root() {
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
         -hda $TESTDIR/flag.img \
Harald Hoyer 61c497
         -hdb $TESTDIR/encrypted.ext2 \
Harald Hoyer 61c497
-        -m 256M \
Harald Hoyer 61c497
+        -m 256M -smp 2\
Harald Hoyer 61c497
         -nographic -net none \
Harald Hoyer 61c497
         -kernel "/boot/vmlinuz-$kernel" \
Harald Hoyer 61c497
-        -append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
+        -append "root=/dev/fakeroot rw quiet console=ttyS0,115200n81 selinux=0" \
Harald Hoyer 61c497
         -initrd $TESTDIR/initramfs.makeroot  || return 1
Harald Hoyer 61c497
     grep -m 1 -q dracut-root-block-created $TESTDIR/flag.img || return 1
Harald Hoyer 61c497
     grep -a -m 1 ID_FS_UUID $TESTDIR/flag.img > $TESTDIR/luks.uuid
Harald Hoyer 61c497
diff --git a/test/TEST-50-MULTINIC/test.sh b/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 61c497
index 65d76b5..17c8cc5 100755
Harald Hoyer 61c497
--- a/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 61c497
+++ b/test/TEST-50-MULTINIC/test.sh
Harald Hoyer 61c497
@@ -17,7 +17,7 @@ run_server() {
Harald Hoyer 61c497
     fsck -a $TESTDIR/server.ext3 || return 1
Harald Hoyer 61c497
     $testdir/run-qemu \
Harald Hoyer 61c497
         -hda $TESTDIR/server.ext3 \
Harald Hoyer 61c497
-        -m 512M \
Harald Hoyer 61c497
+        -m 512M -smp 2 \
Harald Hoyer 61c497
         -nographic \
Harald Hoyer 61c497
         -netdev socket,mcast=230.0.0.1:12320,id=net0 \
Harald Hoyer 61c497
         -net nic,macaddr=52:54:01:12:34:56,model=e1000,netdev=net0 \
Harald Hoyer 61c497
@@ -52,7 +52,7 @@ client_test() {
Harald Hoyer 61c497
         return 1
Harald Hoyer 61c497
     fi
Harald Hoyer 61c497
 
Harald Hoyer 61c497
-    $testdir/run-qemu -hda $TESTDIR/client.img -m 512M -nographic \
Harald Hoyer 61c497
+    $testdir/run-qemu -hda $TESTDIR/client.img -m 512M -smp 2 -nographic \
Harald Hoyer 61c497
         -netdev socket,mcast=230.0.0.1:12320,id=net0 \
Harald Hoyer 61c497
         -net nic,netdev=net0,macaddr=52:54:00:12:34:$mac1,model=e1000 \
Harald Hoyer 61c497
         -netdev socket,mcast=230.0.0.1:12320,id=net1 \