diff options
author | Brian Behlendorf <[email protected]> | 2016-05-25 10:48:12 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-27 11:54:29 -0700 |
commit | 92547bc45ca9a2114662d9343ae53e5098acb627 (patch) | |
tree | a1923d3129f467241c8af61c0791f50e056c317d /etc/systemd/system/50-zfs.preset.in | |
parent | 26ef0cc7db03be6f7a5c2d06c7ecdb2449bfa9e1 (diff) |
Systemd configuration fixes
* Disable zfs-import-scan.service by default. This ensures that
pools will not be automatically imported unless they appear in
the cache file. When this service is explicitly enabled pools
will be imported with the "cachefile=none" property set. This
prevents the creation of, or update to, an existing cache file.
$ systemctl list-unit-files | grep zfs
zfs-import-cache.service enabled
zfs-import-scan.service disabled
zfs-mount.service enabled
zfs-share.service enabled
zfs-zed.service enabled
zfs.target enabled
* Change services to dynamic from static by adding an [Install]
section and adding 'WantedBy' tags in favor of 'Requires' tags.
This allows for easier customization of the boot behavior.
* Start the zfs-import-cache.service after the root pivot so
the cache file is available in the standard location.
* Start the zfs-mount.service after the systemd-remount-fs.service
to ensure the root fs is writeable and the ZFS filesystems can
create their mount points.
* Change the default behavior to only load the ZFS kernel modules
in zfs-import-*.service or when blkid(8) detects a pool. Users
who wish to unconditionally load the kernel modules must uncomment
the list of modules in /lib/modules-load.d/zfs.conf.
Reviewed-by: Richard Laager <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4325
Closes #4496
Closes #4658
Closes #4699
Diffstat (limited to 'etc/systemd/system/50-zfs.preset.in')
-rw-r--r-- | etc/systemd/system/50-zfs.preset.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/systemd/system/50-zfs.preset.in b/etc/systemd/system/50-zfs.preset.in index 4efdd7200..4d82778e3 100644 --- a/etc/systemd/system/50-zfs.preset.in +++ b/etc/systemd/system/50-zfs.preset.in @@ -1,2 +1,7 @@ # ZFS is enabled by default -enable zfs.* +enable zfs-import-cache.service +disable zfs-import-scan.service +enable zfs-mount.service +enable zfs-share.service +enable zfs-zed.service +enable zfs.target |