dracut/test/test-initramfs

10 lines
382 B
Bash
Executable File

#!/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/sda init=/init rw rootfstype=ext2 quiet ramfsdebug console=ttyS0,115200n81" \
-initrd test/initramfs.testing