| Jakob Meng | accd99e | 2022-02-08 11:05:14 +0100 | [diff] [blame] | 1 | [Unit] | 
|  | 2 | Description=Activate LVM backing file %BACKING_FILE% | 
|  | 3 | DefaultDependencies=no | 
|  | 4 | After=systemd-udev-settle.service | 
|  | 5 | Before=lvm2-activation-early.service | 
|  | 6 | Wants=systemd-udev-settle.service | 
|  | 7 |  | 
|  | 8 | [Service] | 
|  | 9 | ExecStart=/sbin/losetup --find --show %DIRECTIO% %BACKING_FILE% | 
|  | 10 | ExecStop=/bin/sh -c '/sbin/losetup -d $$(/sbin/losetup --associated %BACKING_FILE% -O NAME -n)' | 
|  | 11 | RemainAfterExit=yes | 
|  | 12 | Type=oneshot | 
|  | 13 |  | 
|  | 14 | [Install] | 
|  | 15 | WantedBy=local-fs.target | 
|  | 16 | Also=systemd-udev-settle.service |