Skip to content

Commit 4f6a147

Browse files
alteriksbehlendorf
authored andcommitted
Import zfs pools after cryptsetup
The zfs-import-cache.service and zfs-import-scan.service should should be started after cryptsetup to ensure all LUKS devices have been opened. Signed-off-by: alteriks <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #1474
1 parent 0dfc732 commit 4f6a147

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

etc/systemd/system/zfs-import-cache.service.in

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Description=Import ZFS pools by cache file
33
DefaultDependencies=no
44
Requires=systemd-udev-settle.service
55
After=systemd-udev-settle.service
6+
After=cryptsetup.target
67
ConditionPathExists=@sysconfdir@/zfs/zpool.cache
78

89
[Service]

etc/systemd/system/zfs-import-scan.service.in

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Description=Import ZFS pools by device scanning
33
DefaultDependencies=no
44
Requires=systemd-udev-settle.service
55
After=systemd-udev-settle.service
6+
After=cryptsetup.target
67
ConditionPathExists=!@sysconfdir@/zfs/zpool.cache
78

89
[Service]

0 commit comments

Comments
 (0)