Go to file
2024-08-12 20:31:07 +02:00
.gitignore Add the ability to disable install 2022-03-17 14:57:53 +01:00
close-vault.conf.template Initial commit 2022-03-16 16:23:29 +01:00
install.sh Fix error: missing command 2024-08-12 20:31:07 +02:00
mounts.conf.template Add fs type as option 2023-07-27 16:29:06 +02:00
README.md Update README 2023-07-27 16:31:59 +02:00
template.mount Add Install section to template.mount 2023-07-27 16:46:30 +02:00
timeout.conf Add mount timeout option and add sudo variable 2023-07-27 16:23:08 +02:00

Mounting encrypted volumes helper

crypt-mounts' purpose is to reduce to one the commands needed to mount punctually encrypted volumes.

Introduction

One defines their mounts in mounts.conf, giving for each:

  • the mapper name (usually defined in /etc/crypttab);
  • the mount target path;
  • the file system type;
  • a friendly name for the mount (optional);
  • a boolean for enabling auto-locking (i.e. closing encrypted volume when unmounted) or not;
  • a boolean for enabling mount timeout (useful to prevent hanging at boot).

The install script then generates a Systemd mount file for each mount, with the required bindings.

Files

  • template.mount is a template for Systemd mount units.
  • close-vault.conf.template is a Systemd drop-in template, for auto-locking.
  • timeout.conf is a Systemd drop-in for mount timeout.

Installation

  • mounts.conf.template contains a mount definition example, and should be copied locally in mounts.conf.d as <something>.conf, for each of your mounts.
  • install.sh script copies Systemd templates to their destination, depending on your definitions in mounts.conf.d.

TODO

  • Nothing