From: Daniel Molkentin Date: Tue, 12 Nov 2019 13:12:47 +0000 (+0100) Subject: test: Provide host's randomness via virtio X-Git-Tag: 050~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c226bfdda71eefc3c3e9317d635393ebb9d74ac3;p=thirdparty%2Fdracut.git test: Provide host's randomness via virtio --- diff --git a/test/run-qemu b/test/run-qemu index 4eb497fff..5d370fa88 100755 --- a/test/run-qemu +++ b/test/run-qemu @@ -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"