Compare commits
2 Commits
f7aebc691a
...
8531bd3ffb
Author | SHA1 | Date | |
---|---|---|---|
8531bd3ffb | |||
701d542111 |
@ -15,8 +15,9 @@ The install script then generates a Systemd mount file for each mount, with the
|
|||||||
* `template.mount` is a template for Systemd mount units.
|
* `template.mount` is a template for Systemd mount units.
|
||||||
* `close-vault.conf.template` is a Systemd drop-in template, for auto-locking.
|
* `close-vault.conf.template` is a Systemd drop-in template, for auto-locking.
|
||||||
#### Installation
|
#### Installation
|
||||||
* `mounts.conf.template` contains a mount definition example, and should be copied locally to `mounts.conf`
|
* `mounts.conf.template` contains a mount definition example, and should be copied locally in `mounts.conf.d`
|
||||||
(with your own mounts definitions).
|
as `<something>.conf`, for each of your mounts.
|
||||||
* `install.sh` script copies Systemd templates to their destination, depending on your definitions in `mounts.conf`.
|
* `install.sh` script copies Systemd templates to their destination, depending on your definitions in `mounts.conf.d`.
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
|
* Nothing
|
||||||
|
@ -17,6 +17,7 @@ for f in $(dirname "$0")/mounts.conf.d/*.conf; do
|
|||||||
sudo sed -i -e "s/PH_FRIENDLY/${mount[mapper]}/g" /etc/systemd/system/$mountfile
|
sudo sed -i -e "s/PH_FRIENDLY/${mount[mapper]}/g" /etc/systemd/system/$mountfile
|
||||||
fi
|
fi
|
||||||
if [ ${mount[autolock]} -eq 1 ]; then
|
if [ ${mount[autolock]} -eq 1 ]; then
|
||||||
|
sudo mkdir /etc/systemd/system/systemd-cryptsetup@${mount[mapper]}.service.d
|
||||||
sudo cp $(dirname "$0")/close-vault.conf.template \
|
sudo cp $(dirname "$0")/close-vault.conf.template \
|
||||||
/etc/systemd/system/systemd-cryptsetup@${mount[mapper]}.service.d/close-vault.conf
|
/etc/systemd/system/systemd-cryptsetup@${mount[mapper]}.service.d/close-vault.conf
|
||||||
sudo sed -i -e "s/PH_MOUNTFILE/$mountfile/g" \
|
sudo sed -i -e "s/PH_MOUNTFILE/$mountfile/g" \
|
||||||
|
Loading…
Reference in New Issue
Block a user