mirror_zfs/etc/systemd/system
Brian Behlendorf 92547bc45c 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 <rlaager@wiktel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4325
Closes #4496
Closes #4658
Closes #4699
2016-05-27 11:54:29 -07:00
..
.gitignore Add systemd unit files for ZFS startup 2014-02-05 12:25:30 -08:00
50-zfs.preset.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
Makefile.am Rename 'zed.service' to 'zfs-zed.service' 2015-10-02 17:33:32 -04:00
zfs-import-cache.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs-import-scan.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs-mount.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs-share.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs-zed.service.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00
zfs.target.in Systemd configuration fixes 2016-05-27 11:54:29 -07:00