Skip to content

Commit

Permalink
Do not enable zfs-share.service
Browse files Browse the repository at this point in the history
zfs-share.service executes `zfs share` on every boot to share any
filesystem/s, that are shared over SMB and/or NFS using the
sharesmb and sharenfs properties.

Since we do not rely on these properties to share over SMB and NFS
and the service fails on boot on TrueNAS if sharesmb and/or
sharenfs properties are set, and we rely on middleware to control
the SMB and NFS shares, zfs-share.service should be disabled for
TrueNAS SCALE.

Signed-off-by: Umer Saleem <[email protected]>
  • Loading branch information
usaleem-ix committed Aug 24, 2023
1 parent cbfc18d commit 9598cce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/debian/rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,15 @@ override_dh_installinit:
dh_installinit -r --no-restart-after-upgrade --name zfs-import
dh_installinit -r --no-restart-after-upgrade --name zfs-mount
dh_installinit -r --no-restart-after-upgrade --name zfs-load-key
dh_installinit -R --name zfs-share
dh_installinit --no-start --no-enable --name zfs-share
dh_installinit -R --name zfs-zed

override_dh_installsystemd:
mkdir -p debian/openzfs-zfsutils/lib/systemd/system
ln -sr /dev/null debian/openzfs-zfsutils/lib/systemd/system/zfs-import.service
dh_installsystemd --no-stop-on-upgrade -X zfs-zed.service
dh_installsystemd --name zfs-zed
dh_installsystemd --no-start --no-enable --name zfs-share

override_dh_installdocs:
dh_installdocs -A
Expand Down

0 comments on commit 9598cce

Please sign in to comment.