summaryrefslogtreecommitdiff
path: root/dan
diff options
context:
space:
mode:
Diffstat (limited to 'dan')
-rw-r--r--dan/sk-tomnext.yml19
1 files changed, 19 insertions, 0 deletions
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