From a6a1e9bf9b42cd54cd46202dee9212b3001f3213 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 18 May 2020 03:58:53 +0200 Subject: add temporary workaround for network interface stability fix --- dan/sk-tomnext.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'dan/sk-tomnext.yml') diff --git a/dan/sk-tomnext.yml b/dan/sk-tomnext.yml index 54c31bfd..2fd81699 100644 --- a/dan/sk-tomnext.yml +++ b/dan/sk-tomnext.yml @@ -11,3 +11,22 @@ - role: zfs/base - role: vm/host - role: installer/debian/base + tasks: + - name: install post-boot script + copy: + dest: /usr/local/bin/post-boot + mode: 0755 + content: | + #!/bin/bash + set -e + + {% for name, volume in cryptdisk_volumes.items() %} + cryptsetup luksOpen '{{ volume.device }}' '{{ name }}' + {% endfor %} + systemctl restart zfs-import-cache.service + systemctl restart zfs-mount.service + systemctl restart zfs-share.service + mount -a + + sleep 2 + systemctl restart libvirtd.service -- cgit v1.2.3