tags 256699 + patch
thanks
I talked with the package maintainer on IRC, and he believed the
netenv script needed to run after ifupdown with sequence number 39 and
before networking with sequence number 40 which is an impossible
situation with the current legacy boot ordering.
A closer look at the netenv package did not expose anything calling
ifupdown, and this make me believe it can actually start before
ifupdown, and thus should use sequence number 38.
This patch should move it to sequence number 38, and make sure it get
a similar boot order when using dependency based boot sequencing. I
also assume it need to run after hostname based on the title of this
bug. If this is not true, that part can be removed from the
required-start header. This patch should also solve bug #547394.
The maintainer plan a new upload very shortly, but if he failed to
upload within two days, it is OK with an NMU.
diff -ur ../netenv-0.94.3/debian/init ../netenv-0.94.3-pere/debian/init
--- ../netenv-0.94.3/debian/init 2009-09-22 10:27:54.000000000 +0200
+++ ../netenv-0.94.3-pere/debian/init 2009-09-22 10:54:15.474115000 +0200
@@ -5,10 +5,10 @@
#
### BEGIN INIT INFO
# Provides: netenv
-# Required-Start: $local_fs
+# Required-Start: $local_fs hostname
# Required-Stop: $local_fs
-# Should-Start: $network
-# Should-Stop: $network
+# X-Start-Before: $network
+# X-Stop-After: $network
# Default-Start: S
# Default-Stop:
# Short-Description: Start netenv at boot time
diff -ur ../netenv-0.94.3/debian/postinst ../netenv-0.94.3-pere/debian/postinst
--- ../netenv-0.94.3/debian/postinst 2009-09-22 10:27:54.000000000 +0200
+++ ../netenv-0.94.3-pere/debian/postinst 2009-09-22 11:17:30.625187000
+0200
@@ -132,6 +132,13 @@
SETUPFILE=/etc/netenv/${NODE}
NETENV_SCRIPT=/etc/netenv/setup-default
+# The sequence number of netenv was changed after version, to have a
+# sequence number before networking and ifupdown. It is reinserted by
+# debhelper below.
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "0.94.3-24" ; then
+ update-rc.d -f netenv remove
+fi
+
case "$1" in
configure|reconfigure)
Only in ../netenv-0.94.3-pere/debian: postinst.~1~
diff -ur ../netenv-0.94.3/debian/rules ../netenv-0.94.3-pere/debian/rules
--- ../netenv-0.94.3/debian/rules 2009-09-22 10:27:54.000000000 +0200
+++ ../netenv-0.94.3-pere/debian/rules 2009-09-22 11:14:11.391854000 +0200
@@ -6,7 +6,7 @@
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
# Avoid starting netenv during update/installation of the package
-DEB_DH_INSTALLINIT_ARGS += --no-start -- start 40 S .
+DEB_DH_INSTALLINIT_ARGS += --no-start -- start 38 S .
binary-install/netenv::
cp debian/binary.lintian-overrides \
Happy hacking,
--
Petter Reinholdtsen
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]