[OSSTEST,10/49] Debian guests made with xen-tools: Write systemd random seed file
diff mbox series

Message ID 20200529111945.21394-11-ian.jackson@eu.citrix.com
State New
Headers show
Series
  • Switch to Debian buster (= Debian stable)
Related show

Commit Message

Ian Jackson May 29, 2020, 11:19 a.m. UTC
When the Debian guest is not made with d-i, we must still provide this
random seed file.  This can be done in ts-debian-fixup.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
 ts-debian-fixup | 6 ++++++
 1 file changed, 6 insertions(+)

Patch
diff mbox series

diff --git a/ts-debian-fixup b/ts-debian-fixup
index fef9836e..dfeb4d39 100755
--- a/ts-debian-fixup
+++ b/ts-debian-fixup
@@ -102,6 +102,11 @@  sub console () {
     logm("extra: $extra");
 }
 
+sub randomseed () {
+    my $cmd = debian_write_random_seed_command($mountpoint);
+    target_cmd_root($ho, "set -ex\n".cmd);
+}
+
 sub filesystems () {
     my $rootdev= $r{"$gho->{Guest}_rootdev"};
     return unless defined($rootdev) && length($rootdev);
@@ -215,6 +220,7 @@  END
 target_cmd_root($ho, debian_dhcp_rofs_fix($ho, $mountpoint));
 
 console();
+randomseed();
 filesystems();
 otherfixupcfg();
 writecfg();