|
|
|
@ -17,7 +17,7 @@ test_run() {
@@ -17,7 +17,7 @@ test_run() {
|
|
|
|
|
$testdir/run-qemu \ |
|
|
|
|
-drive format=raw,index=0,media=disk,file=$TESTDIR/root.ext2 \ |
|
|
|
|
-drive format=raw,index=1,media=disk,file=$TESTDIR/check-success.img \ |
|
|
|
|
-m 256M -smp 2 -nographic \ |
|
|
|
|
-m 256M -cpu host -smp 2 -nographic \ |
|
|
|
|
-net none \ |
|
|
|
|
-no-reboot \ |
|
|
|
|
-append "panic=1 root=/dev/dracut/root rw rd.auto rd.retry=20 console=ttyS0,115200n81 selinux=0 rd.debug rootwait $LUKSARGS rd.shell=0 $DEBUGFAIL" \ |
|
|
|
@ -31,7 +31,7 @@ test_run() {
@@ -31,7 +31,7 @@ test_run() {
|
|
|
|
|
$testdir/run-qemu \ |
|
|
|
|
-drive format=raw,index=0,media=disk,file=$TESTDIR/root.ext2 \ |
|
|
|
|
-drive format=raw,index=1,media=disk,file=$TESTDIR/check-success.img \ |
|
|
|
|
-m 256M -smp 2 -nographic \ |
|
|
|
|
-m 256M -cpu host -smp 2 -nographic \ |
|
|
|
|
-net none \ |
|
|
|
|
-no-reboot \ |
|
|
|
|
-append "panic=1 root=/dev/dracut/root rw quiet rd.auto rd.retry=20 rd.info console=ttyS0,115200n81 selinux=0 rd.debug $DEBUGFAIL" \ |
|
|
|
@ -45,7 +45,7 @@ test_run() {
@@ -45,7 +45,7 @@ test_run() {
|
|
|
|
|
$testdir/run-qemu \ |
|
|
|
|
-drive format=raw,index=0,media=disk,file=$TESTDIR/root.ext2 \ |
|
|
|
|
-drive format=raw,index=1,media=disk,file=$TESTDIR/check-success.img \ |
|
|
|
|
-m 256M -smp 2 -nographic \ |
|
|
|
|
-m 256M -cpu host -smp 2 -nographic \ |
|
|
|
|
-net none \ |
|
|
|
|
-no-reboot \ |
|
|
|
|
-append "panic=1 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" \ |
|
|
|
@ -111,7 +111,7 @@ test_setup() {
@@ -111,7 +111,7 @@ test_setup() {
|
|
|
|
|
-f $TESTDIR/initramfs.makeroot $KVERSION || return 1 |
|
|
|
|
rm -rf -- $TESTDIR/overlay |
|
|
|
|
# Invoke KVM and/or QEMU to actually create the target filesystem. |
|
|
|
|
$testdir/run-qemu -drive format=raw,index=0,media=disk,file=$TESTDIR/root.ext2 -m 256M -smp 2 -nographic -net none \ |
|
|
|
|
$testdir/run-qemu -drive format=raw,index=0,media=disk,file=$TESTDIR/root.ext2 -m 256M -cpu host -smp 2 -nographic -net none \ |
|
|
|
|
-append "root=/dev/fakeroot rw rootfstype=ext2 quiet console=ttyS0,115200n81 selinux=0" \ |
|
|
|
|
-initrd $TESTDIR/initramfs.makeroot || return 1 |
|
|
|
|
grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.ext2 || return 1 |
|
|
|
|