[Bug 1105147] Re: /etc/init.d/ondemand conffile prompt on upgrade to raring

Steve Langasek steve.langasek at canonical.com
Sat Apr 20 16:26:19 UTC 2013


> -set -x

We certainly never call 'set -x' in any of the init scripts included in
the distribution.  Looks like this was a one-time modification you put
in place for debugging that you then forgot about.  So the conffile
prompt is expected here.

** Changed in: sysvinit (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/1105147

Title:
  /etc/init.d/ondemand conffile prompt on upgrade to raring

Status in “sysvinit” package in Ubuntu:
  Invalid

Bug description:
  I'm upgrading from quantal to raring. I got a dialog asking me whether
  to replace /etc/init.d/ondemand. I don't recall ever customizing this
  file by hand. Based on the diff (see below) it looks like the distro
  conffile changed, so the upgrade should handle the diff silently
  without prompting the user.


  --- /etc/init.d/ondemand	2011-01-14 15:25:20.366826002 -0500
  +++ /etc/init.d/ondemand.dpkg-new	2012-12-07 07:05:54.000000000 -0500
  @@ -8,13 +8,14 @@
   # Short-Description: Set the CPU Frequency Scaling governor to "ondemand"
   ### END INIT INFO
   
  -set -x
   
   PATH=/sbin:/usr/sbin:/bin:/usr/bin
   
   . /lib/init/vars.sh
   . /lib/lsb/init-functions
   
  +AVAILABLE="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors"
  +
   case "$1" in
       start)
       	start-stop-daemon --start --background --exec /etc/init.d/ondemand -- background
  @@ -22,10 +23,26 @@
       background)
   	sleep 60 # probably enough time for desktop login
   
  +	[ -f $AVAILABLE ] || exit 0
  +	read governors < $AVAILABLE
  +	case $governors in
  +		*interactive*)
  +			GOVERNOR="interactive"
  +			break
  +			;;
  +		*ondemand*)
  +			GOVERNOR="ondemand"
  +			break
  +			;;
  +		*)
  +			exit 0
  +			;;
  +	esac
  +			
   	for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
   	do
   		[ -f $CPUFREQ ] || continue
  -		echo -n ondemand > $CPUFREQ
  +		echo -n $GOVERNOR > $CPUFREQ
   	done
   	;;
       restart|reload|force-reload)

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: initscripts 2.88dsf-13.10ubuntu14
  Uname: Linux 3.6.3-030603-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.6.1-0ubuntu9
  Architecture: amd64
  Date: Fri Jan 25 09:41:16 2013
  InstallationDate: Installed on 2010-09-17 (861 days ago)
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: sysvinit
  UpgradeStatus: Upgraded to raring on 2013-01-25 (0 days ago)
  mtime.conffile..etc.init.d.ondemand: 2011-01-14T15:25:20.366826

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/1105147/+subscriptions




More information about the foundations-bugs mailing list