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

[Unit]
Description=Unlock Encrypted Device for MD RAID 1
Conflicts=umount.target
DefaultDependencies=no
BindsTo=dev-mapper-%i.device
Before=mnt-daten.mount
After=dev-md1.device mdmonitor.service
Requires=dev-md1.device mdmonitor.service
ConditionPathExists=!/dev/disk/by-uuid/BA19-64EE

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/lib/systemd/systemd-cryptsetup attach 'storage' '/dev/md1' 'none' 'luks';
#ExecStop=/usr/bin/systemctl stop --no-block mnt-dongle.mount

[Install]
WantedBy=basic.target