blob: bef6886a5f9b2d5609f74b61e026a9bd170e568e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# 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';
[Install]
WantedBy=basic.target
|