]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: Provide host's randomness via virtio
authorDaniel Molkentin <dmolkentin@suse.com>
Tue, 12 Nov 2019 13:12:47 +0000 (14:12 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Wed, 13 Nov 2019 08:07:45 +0000 (09:07 +0100)
test/run-qemu

index 4eb497fff5c606c2dd8e788d3d67a3f189e88b20..5d370fa8829df79821c4e544128c0efc29aee910 100755 (executable)
@@ -17,6 +17,9 @@ $(lsmod | grep -q '^kqemu ') && BIN=/usr/bin/qemu && ARGS="-kernel-kqemu -cpu ho
    exit 1
 }
 
+# Provide rng device sourcing the hosts /dev/urandom
+ARGS="$ARGS -device virtio-rng-pci"
+
 KVERSION=${KVERSION-$(uname -r)}
 
 VMLINUZ="/lib/modules/${KVERSION}/vmlinuz"