From 5e7a2f4665b5be32dab9c183e6fdb94e1f434b70 Mon Sep 17 00:00:00 2001 From: Chris Zubrzycki Date: Wed, 14 Sep 2022 21:38:30 -0400 Subject: [PATCH] Update zfs-mount to load before fstab, matches systemd service. Reviewed-by: Brian Behlendorf Signed-off-by: Chris Zubrzycki Closes #13895 --- etc/init.d/README.md | 2 +- etc/init.d/zfs-mount.in | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/init.d/README.md b/etc/init.d/README.md index f417b24c59..2de05042ce 100644 --- a/etc/init.d/README.md +++ b/etc/init.d/README.md @@ -44,7 +44,7 @@ INSTALLING INIT SCRIPT LINKS update-rc.d zfs-import start 07 S . stop 07 0 1 6 . update-rc.d zfs-load-key start 02 2 3 4 5 . stop 06 0 1 6 . - update-rc.d zfs-mount start 02 2 3 4 5 . stop 06 0 1 6 . + update-rc.d zfs-mount start 02 S . stop 06 0 1 6 . update-rc.d zfs-zed start 07 2 3 4 5 . stop 08 0 1 6 . update-rc.d zfs-share start 27 2 3 4 5 . stop 05 0 1 6 . diff --git a/etc/init.d/zfs-mount.in b/etc/init.d/zfs-mount.in index df28c6c951..a0825f19fc 100755 --- a/etc/init.d/zfs-mount.in +++ b/etc/init.d/zfs-mount.in @@ -13,10 +13,11 @@ # ### BEGIN INIT INFO # Provides: zfs-mount -# Required-Start: $local_fs zfs-import +# Required-Start: zfs-import # Required-Stop: $local_fs zfs-import -# Default-Start: 2 3 4 5 +# Default-Start: S # Default-Stop: 0 1 6 +# X-Start-Before: mountall # X-Stop-After: zfs-zed # Short-Description: Mount ZFS filesystems and volumes # Description: Run the `zfs mount -a` or `zfs umount -a` commands.