[Pkg-sysvinit-commits] r1724 - sysvinit/trunk/debian
Petter Reinholdtsen
pere at alioth.debian.org
Sat Sep 5 19:09:27 UTC 2009
Author: pere
Date: 2009-09-05 19:09:27 +0000 (Sat, 05 Sep 2009)
New Revision: 1724
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/sysv-rc.postinst
Log:
Send all output from the sysv-rc postinst to stderr, to make sure
we do not confuse debconf.
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2009-09-05 17:06:13 UTC (rev 1723)
+++ sysvinit/trunk/debian/changelog 2009-09-05 19:09:27 UTC (rev 1724)
@@ -1,3 +1,10 @@
+sysvinit (2.87dsf-4) UNRELEASED; urgency=low
+
+ * Send all output from the sysv-rc postinst to stderr, to make sure
+ we do not confuse debconf.
+
+ -- Petter Reinholdtsen <pere at debian.org> Sat, 05 Sep 2009 21:07:36 +0200
+
sysvinit (2.87dsf-3) unstable; urgency=low
[ Petter Reinholdtsen ]
Modified: sysvinit/trunk/debian/sysv-rc.postinst
===================================================================
--- sysvinit/trunk/debian/sysv-rc.postinst 2009-09-05 17:06:13 UTC (rev 1723)
+++ sysvinit/trunk/debian/sysv-rc.postinst 2009-09-05 19:09:27 UTC (rev 1724)
@@ -58,7 +58,7 @@
retval=1
# Refuse to convert when there are obsolete init.d scripts left
# behind, as these tend to confuse the boot sequence.
- echo "info: Checking if it is safe to convert to dependency based boot."
+ echo "info: Checking if it is safe to convert to dependency based boot." 1>&2
for package in $(dpkg -S $(find /etc/init.d -type f -perm /+x) \
2>/dev/null | cut -d: -f1 | sort -u); do
obsolete_initscripts=$(dpkg-query -W -f='${Conffiles}\n' $package | \
@@ -106,12 +106,12 @@
# the content in /var/lib/update-rc.d/.
/usr/share/sysv-rc/saveconfig -s /var/lib/update-rc.d
- echo "info: Reordering boot system, log to $logfile"
+ echo "info: Reordering boot system, log to $logfile" 1>&2
(
- echo "info: Converting rc0.d/S* and rc6.d/S* to K*."
+ echo "info: Converting rc0.d/S* and rc6.d/S* to K*." 1>&2
convert_rc_s_to_k 0
convert_rc_s_to_k 6
- echo "info: running insserv"
+ echo "info: running insserv" 1>&2
insserv -v
) > $logfile 2>&1
@@ -143,12 +143,12 @@
db_get sysv-rc/convert-legacy || true
if [ true = "$RET" ] ; then
if activate_insserv ; then
- echo "success: Enabled dependency based boot system."
+ echo "success: Enabled dependency based boot system." 1>&2
else
- echo "error: Something failed while migrating."
+ echo "error: Something failed while migrating." 1>&2
fi
else
- echo "warning: Asked to not convert legacy boot sequence to dependency based boot sequencing."
+ echo "warning: Asked to not convert legacy boot sequence to dependency based boot sequencing." 1>&2
fi
fi
}
@@ -177,7 +177,7 @@
if try_to_convert ; then
:
else
- echo "error: Unable to migrate to dependency based boot sequencing."
+ echo "error: Unable to migrate to dependency based boot sequencing." 1>&2
fi
fi
;;
More information about the Pkg-sysvinit-commits
mailing list