mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-02-06 23:33:21 +03:00
![Jonathon](/assets/img/avatar_default.png)
This is a minor change to the systemd service templates that verifies the zfs kernel module is loaded by the kernel prior to attempting to import any zpool. Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Jonathon Fernyhough <jonathon.fernyhough@york.ac.uk> Closes #10627
19 lines
399 B
SYSTEMD
19 lines
399 B
SYSTEMD
[Unit]
|
|
Description=Mount ZFS filesystems
|
|
Documentation=man:zfs(8)
|
|
DefaultDependencies=no
|
|
After=systemd-udev-settle.service
|
|
After=zfs-import.target
|
|
After=systemd-remount-fs.service
|
|
Before=local-fs.target
|
|
Before=systemd-random-seed.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecCondition=/usr/bin/grep -q "^zfs " /proc/modules
|
|
ExecStart=@sbindir@/zfs mount -a
|
|
|
|
[Install]
|
|
WantedBy=zfs.target
|