diff --git a/Makefile b/Makefile index a4dfd92..68aa1a9 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ rpm: dracut-$(VERSION)-$(GITVERSION).tar.bz2 rm -fr BUILD BUILDROOT test: test/root.ext2 all - sudo APPEND="$(APPEND)" DRACUTOPTS="$(DRACUTOPTS)" test/test-initramfs + sudo APPEND="$(APPEND)" DRACUTOPTS="$(DRACUTOPTS)" NOCREATE="$(NOCREATE)" test/test-initramfs test/root.ext2: test/test-init test/make-test-root sudo test/make-test-root diff --git a/test/test-initramfs b/test/test-initramfs index f828307..f223c54 100755 --- a/test/test-initramfs +++ b/test/test-initramfs @@ -1,7 +1,7 @@ #!/bin/bash [[ -f test/root.ext2 ]] || test/make-test-root -./dracut $DRACUTOPTS -c test/dracut.conf.test -l -f test/initramfs.testing || exit +[[ $NOCREATE ]] || ./dracut $DRACUTOPTS -c test/dracut.conf.test -l -f test/initramfs.testing || exit qemu-kvm -hda test/root.ext2 -m 512M -nographic \ -net nic,macaddr=52:54:00:12:34:57 -net socket,mcast=230.0.0.1:1234 \