#!/bin/bash kernel=$(uname -r) [[ -f test/root.ext2 ]] || test/make-test-root ./dracut -c test/dracut.conf.test -l -f test/initramfs.testing || exit qemu-kvm -hda test/root.ext2 -m 512M -nographic -net none \ -kernel /boot/vmlinuz-$kernel \ -append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81" \ -initrd test/initramfs.testing