summarylogtreecommitdiffstats
path: root/manolo.luksopenwithkey.service
blob: 70a58fe856a0865808497920a1417435cf95e4b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# selbst erstellt 20.1.18

[Unit]
Description=Unlock Encrypted Device With Keyfile for MD RAID 1
Conflicts=umount.target
DefaultDependencies=no
BindsTo=dev-mapper-%i.device
After=dev-md1.device mnt-dongle.mount
Requires=dev-md1.device
Wants=mnt-dongle.mount
Before=mnt-daten.mount
ConditionPathExists=/mnt/dongle/.Thumb0.db

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/lib/systemd/systemd-cryptsetup attach 'storage' '/dev/md1' '/mnt/dongle/.Thumb0.db' 'luks';
ExecStartPost=systemctl stop mnt-dongle.mount 

[Install]
WantedBy=basic.target