summaryrefslogtreecommitdiff
path: root/crypttab.example
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2022-05-07 17:53:18 -0600
committerAaron Ball <nullspoon@oper.io>2022-05-07 18:02:11 -0600
commit7dd13c6d15c49aea272bebdc2fbd2e00dd656ea5 (patch)
tree3733a8456d2e7fca8203fcd1d7e7079caf1c0e7d /crypttab.example
parent2c6df93b2d10aa06f899a6c13a6394bc798fd357 (diff)
downloadcrypttab-7dd13c6d15c49aea272bebdc2fbd2e00dd656ea5.tar.gz
crypttab-7dd13c6d15c49aea272bebdc2fbd2e00dd656ea5.tar.xz
Lots of backwards incompatible changes to improve the experience
This adds a sample crypttab file for users to deploy to /etc/crypttab. This version changes the syntax of the crypttab file. Previously, the syntax was <mapper_name> <device_path> <key_path> The mapper name is now inferred from the device path (replacing all `/` with `_` so `/dev/sda1` becomes `_dev_sda1` for example). The new syntax is: <crypt_device> <key_path> <mount_path> Note that the mount path is now included. Previously it was expected that the user would include the mapper path in their fstab file so a subsequent `mount -a` would mount it once decrypted. This has all kinds of service start order problems. Now crypttab handles mounting and unmouting, so the mount path is part of the config file. This also now makes `lsof` and optional program so stopping mount still works if lsof is not installed.
Diffstat (limited to 'crypttab.example')
-rw-r--r--crypttab.example4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypttab.example b/crypttab.example
new file mode 100644
index 0000000..07b2586
--- /dev/null
+++ b/crypttab.example
@@ -0,0 +1,4 @@
+#
+# /etc/crypttab: Crypttab file system information
+#
+# <crypt_device> <key_path> <mount_path>

Generated by cgit