1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash set -e uuid=05b7770e-1f01-4b17-83de-ede0a04495a1 instance="$(systemd-escape $uuid)" case "$1" in mount) sudo cryo "$uuid" mount ;; umount) sudo cryo "$uuid" umount ;; *) sudo systemctl start "cryo@$instance.service" ;; esac