Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / part-randomize
diff --git a/host/part-randomize b/host/part-randomize
new file mode 100755 (executable)
index 0000000..6a9796f
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/host/lib.sh
+
+part="$1"
+eval "sudo dd if=/dev/urandom of=\$vm_dev_disk_$part"