Browse Source
Also create the root filesystem from within the virtual env, this way there will be no nasty suprises w.r.t interactions with the host machine. This is important when we test booting to LVM, LUKS, and mdraid.master


3 changed files with 22 additions and 13 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash |
||||
for f in kvm qemu-kvm qemu; do |
||||
type $f >/dev/null 2>&1 || continue |
||||
$f "$@" |
||||
exit |
||||
done |
||||
echo "Could not find a working KVM or QEMU to test with!" |
||||
echo "Please install kvm or qemu." |
||||
exit 1 |
@ -1,11 +1,8 @@
@@ -1,11 +1,8 @@
|
||||
#!/bin/bash |
||||
[[ -f test/root.ext2 ]] || test/make-test-root |
||||
|
||||
./dracut $DRACUTOPTS -c test/dracut.conf.test -l -f test/initramfs.testing || exit |
||||
|
||||
qemu-kvm -hda test/root.ext2 -m 512M -nographic \ |
||||
test/run-qemu -hda test/root.ext2 -m 512M -nographic \ |
||||
-net nic,macaddr=52:54:00:12:34:57 -net socket,mcast=230.0.0.1:1234 \ |
||||
-kernel /boot/vmlinuz-$(uname -r) \ |
||||
-initrd test/initramfs.testing \ |
||||
-append "root=/dev/sda rw console=ttyS0,115200n81 $APPEND" |
||||
|
||||
-append "root=/dev/sda rw console=ttyS0,115200n81 $APPEND" \ |
||||
-initrd test/initramfs.testing |
||||
|
Loading…
Reference in new issue