[Pkg-xen-devel] Bug#932759: [PATCH 2/2] debian/rules: --no-start for xen dh_installinit

Hans van Kranenburg hans at knorrie.org
Mon May 25 22:38:36 BST 2020


When debugging the xen-utils postinst/prerm to find the cause of the
mysteriously disappearing xenconsoled processes, I discovered that the
xen-utils-common postinst and prerm stop and start the xen init script
as well!

These commands are not visible in the packaging code, but they are added
by dh_installdeb into the postinst and prerm during package build time.

We only want to call the script from xen-utils-V, so disable this
behavior by using --no-start

Closes: #932759 (2/2)
Signed-off-by: Hans van Kranenburg <hans at knorrie.org>
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 23c982eb414b..73232ca20efe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -282,7 +282,7 @@ override_dh_python2:
 
 # We have two init scripts.  (There used to be xend too.)
 override_dh_installinit:
-	dh_installinit --name xen -- defaults 20 21
+	dh_installinit --name xen --no-start -- defaults 20 21
 	dh_installinit --name xendomains --no-start -- defaults 21 20
 
 # dh_strip in dh compat 10 and earlier (which we are at so this
-- 
2.20.1



More information about the Pkg-xen-devel mailing list