2015-09-28 11:15:48 +03:00
|
|
|
Do not install sysv init scripts
|
|
|
|
|
|
|
|
We use systemd on PVE, so there is no need to install old sysv init scripts.
|
|
|
|
Also, provided scripts are buggy, because they do not
|
|
|
|
include /lib/lsb/init-functions, thus do not call systemctl to start
|
|
|
|
services.
|
|
|
|
|
|
|
|
Adittionally, service names differ, so some services are started
|
|
|
|
twice (zed => zfs-zed).
|
|
|
|
|
2015-09-24 14:11:56 +03:00
|
|
|
Index: new/debian/rules
|
2015-07-21 12:48:23 +03:00
|
|
|
===================================================================
|
2015-09-24 14:11:56 +03:00
|
|
|
--- new.orig/debian/rules
|
|
|
|
+++ new/debian/rules
|
|
|
|
@@ -113,7 +113,7 @@ override_dh_installinit:
|
2015-07-21 12:48:23 +03:00
|
|
|
@# Install the /etc/init.d/zfs-import script.
|
|
|
|
ifeq ($(LSB_DISTRIBUTOR),Debian)
|
|
|
|
dh_installinit -pzfsutils --onlyscripts --name=zfs-import \
|
|
|
|
- --no-restart-on-upgrade --no-start -- start 07 S . stop 07 0 1 6 .
|
|
|
|
+ --no-restart-on-upgrade --no-start
|
|
|
|
else
|
|
|
|
dh_installinit -pzfsutils --onlyscripts --name=zfs-import \
|
|
|
|
--no-restart-on-upgrade --no-start
|
2015-09-28 11:15:48 +03:00
|
|
|
@@ -123,21 +123,23 @@ endif
|
2015-07-21 12:48:23 +03:00
|
|
|
ifeq ($(LSB_DISTRIBUTOR),Debian)
|
|
|
|
@# Debian runs local mounts at sysv sequences [10..12] [08..09].
|
|
|
|
dh_installinit -pzfsutils --onlyscripts --name=zfs-mount \
|
|
|
|
- --no-restart-on-upgrade --no-start -- start 02 2 3 4 5 . stop 06 0 1 6 .
|
|
|
|
+ --no-restart-on-upgrade --no-start
|
|
|
|
else
|
|
|
|
dh_installinit -pzfsutils --onlyscripts --name=zfs-mount \
|
|
|
|
--no-restart-on-upgrade --no-start
|
2015-09-28 11:15:48 +03:00
|
|
|
endif
|
2015-09-24 14:11:56 +03:00
|
|
|
|
2015-09-28 11:15:48 +03:00
|
|
|
- @# Install the ZED init file.
|
|
|
|
- dh_installinit -pzfsutils --onlyscripts --name=zfs-zed \
|
2015-09-24 14:11:56 +03:00
|
|
|
- --no-restart-on-upgrade --no-start -- start 07 2 3 4 5 . stop 08 0 1 6 .
|
2015-09-28 11:15:48 +03:00
|
|
|
+ # zed is started with systemd zed.service
|
|
|
|
+ # so do not install zfs-zed init script
|
|
|
|
+ #@# Install the ZED init file.
|
|
|
|
+ #dh_installinit -pzfsutils --onlyscripts --name=zfs-zed \
|
|
|
|
+ # --no-restart-on-upgrade --no-start
|
2015-09-24 14:11:56 +03:00
|
|
|
|
|
|
|
@# Install the /etc/init.d/zfs-share script.
|
2015-07-21 12:48:23 +03:00
|
|
|
ifeq ($(LSB_DISTRIBUTOR),Debian)
|
|
|
|
@# Debian runs nfs-kernel-server at sysv sequence 17 01.
|
|
|
|
dh_installinit -pzfsutils --onlyscripts --name=zfs-share \
|
|
|
|
- --no-restart-on-upgrade --no-start -- start 27 2 3 4 5 . stop 05 0 1 6 .
|
|
|
|
+ --no-restart-on-upgrade --no-start
|
|
|
|
else ifeq ($(LSB_DISTRIBUTOR),Ubuntu)
|
|
|
|
@# Ubuntu runs nfs-kernel-server at sysv sequence 20 80.
|
|
|
|
@# iscsitarget at 20 20, and samba through upstart.
|
2015-09-28 11:15:48 +03:00
|
|
|
Index: new/debian/zfsutils.install
|
|
|
|
===================================================================
|
|
|
|
--- new.orig/debian/zfsutils.install
|
|
|
|
+++ new/debian/zfsutils.install
|
|
|
|
@@ -1,9 +1,5 @@
|
|
|
|
../tree/zfsutils/* /
|
|
|
|
contrib/bash_completion.d/zfs /etc/bash_completion.d/
|
|
|
|
-contrib/sysv-init/zfs-import /etc/init.d/
|
|
|
|
-contrib/sysv-init/zfs-mount /etc/init.d/
|
|
|
|
-contrib/sysv-init/zfs-share /etc/init.d/
|
|
|
|
-contrib/sysv-init/zfs-zed /etc/init.d/
|
|
|
|
lib/udev
|
|
|
|
sbin
|
|
|
|
usr/share/man
|
|
|
|
Index: new/debian/zfsutils.postinst
|
|
|
|
===================================================================
|
|
|
|
--- new.orig/debian/zfsutils.postinst
|
|
|
|
+++ new/debian/zfsutils.postinst
|
|
|
|
@@ -10,6 +10,10 @@ then
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/init.d/zed -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-zed -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-mount -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-share -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-import -- "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#DEBHELPER#
|
|
|
|
Index: new/debian/zfsutils.preinst
|
|
|
|
===================================================================
|
|
|
|
--- new.orig/debian/zfsutils.preinst
|
|
|
|
+++ new/debian/zfsutils.preinst
|
|
|
|
@@ -6,6 +6,10 @@ then
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/default/zfsload -- "$@"
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/init.d/zfs -- "$@"
|
|
|
|
dpkg-maintscript-helper rm_conffile /etc/init.d/zed -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-zed -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-mount -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-share -- "$@"
|
|
|
|
+ dpkg-maintscript-helper rm_conffile /etc/init.d/zfs-import -- "$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
#DEBHELPER#
|