From cbf0cecd44a6b422e208f3043f2ceaf7fd0a25a9 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 22 Oct 2016 16:39:53 +0200 Subject: Ensure module 'virtio-rng' is loaded in the guest before creation of key material. --- tdf-postinst-udeb/debian/postinst | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 tdf-postinst-udeb/debian/postinst (limited to 'tdf-postinst-udeb/debian') diff --git a/tdf-postinst-udeb/debian/postinst b/tdf-postinst-udeb/debian/postinst new file mode 100755 index 0000000..fc933d3 --- /dev/null +++ b/tdf-postinst-udeb/debian/postinst @@ -0,0 +1,13 @@ +#!/bin/sh + +set -ue + +if [ "$1" = 'configure' ]; then + # Linux >=3.16 mixes output from the VirtIO RNG (/dev/hwrng) into + # /dev/random hence we no longer need to do this in userspace using + # `rngd` + register-module virtio-rng +fi + +#DEBHELPER# +exit 0 -- cgit v1.2.3