about summary refs log tree commit diff
path: root/run
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-04-23 16:05:54 +0000
committerAlyssa Ross <hi@alyssa.is>2023-04-23 16:05:54 +0000
commit4aeb8d60010687c8c2c31dceb18f722b0e684e4e (patch)
tree2c449b010e1f93c834aaf24aa193a723fe63d09d /run
parent9b7e1e27e7d57307300cf9eaaec535472697a8e0 (diff)
downloadinfra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.tar
infra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.tar.gz
infra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.tar.bz2
infra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.tar.lz
infra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.tar.xz
infra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.tar.zst
infra-4aeb8d60010687c8c2c31dceb18f722b0e684e4e.zip
run: use the modern cryptsetup syntax
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'run')
-rw-r--r--run2
1 files changed, 1 insertions, 1 deletions
diff --git a/run b/run
index 2bbcffd..83015b2 100644
--- a/run
+++ b/run
@@ -5,7 +5,7 @@
 set -uexo pipefail
 export PATH=/run/wrappers/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
 
-cryptsetup create -d /dev/random create swap /dev/vda
+cryptsetup open -d /dev/random --type plain /dev/vda swap
 mkswap /dev/mapper/swap
 swapon /dev/mapper/swap