Compare commits

...

3 Commits

Author SHA1 Message Date
43492c524e Fix error: missing command 2024-08-12 20:31:07 +02:00
8fab47ec65 Add Install section to template.mount 2023-07-27 16:46:30 +02:00
cc21a48a05 Update README 2023-07-27 16:31:59 +02:00
3 changed files with 8 additions and 1 deletions

View File

@ -6,14 +6,17 @@ crypt-mounts' purpose is to reduce to one the commands needed to mount punctuall
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 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.

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
run_directory=$(dirname $(readlink -f "$0"))
user=$(whoami)
if [ -f $run_directory/.disabled ]; then
echo "Installation is disabled. Exiting..."

View File

@ -8,3 +8,6 @@ What=/dev/mapper/PH_MAPPER
Where=PH_TARGET
Type=PH_FSTYPE
Options=rw,relatime
[Install]
WantedBy=default.target