Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / local / luks-key-change
diff --git a/local/luks-key-change b/local/luks-key-change
new file mode 100755 (executable)
index 0000000..f4a0f57
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/local/lib.sh
+
+sudo cryptsetup luksChangeKey /dev/$vm_lvm_vg/${vm_lvm_lv}_root