Prompts to merge unmodified conffile /etc/rc.local on upgrade to intrepid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: sysvinit
On two different systems, both with unmodified /etc/rc.local, I was prompted to merge changes to it via a dpkg conffile prompt when upgrading from 8.04.1 to intrepid ca. 8 July. The diff is:
--- /etc/init.
+++ /etc/init.
@@ -1,14 +1,26 @@
#! /bin/sh
+### BEGIN INIT INFO
+# Provides: rc.local
+# Required-Start: $remote_fs
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop:
+# Short-Description: Run /etc/rc.local if it exist
+### END INIT INFO
-PATH=/
-[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+PATH=/
+
+. /lib/init/vars.sh
. /lib/lsb/
do_start() {
if [ -x /etc/rc.local ]; then
- log_begin_msg "Running local boot scripts (/etc/rc.local)"
+ [ "$VERBOSE" != no ] && log_begin_msg "Running local boot scripts (/etc/rc.local)"
/etc/rc.local
- log_end_msg $?
+ ES=$?
+ [ "$VERBOSE" != no ] && log_end_msg $ES
+ return $ES
fi
}
Related branches
Changed in sysvinit: | |
assignee: | nobody → pitti |
milestone: | none → ubuntu-8.10-beta |
status: | New → In Progress |
This bug was fixed in the package sysvinit - 2.86.ds1-59ubuntu2
--------------- 59ubuntu2) intrepid; urgency=low
sysvinit (2.86.ds1-
* Since our last merge, /etc/init. d/rc.local was marked as a conffile.
Detect if it's unmodified, and if so, install the new version without
bothering the user with questions (LP: #246550)
-- Soren Hansen <email address hidden> Tue, 22 Jul 2008 15:59:40 +0200