Your message dated Sun, 11 Sep 2005 19:50:29 +0200
with message-id <[EMAIL PROTECTED]>
and subject line This bug is fixed now
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Sep 2005 19:17:09 +0000
>From [EMAIL PROTECTED] Sun Sep 04 12:17:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from pat.uio.no [129.240.130.16] (7411)
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EBzzI-0005fb-00; Sun, 04 Sep 2005 12:17:08 -0700
Received: from mail-mx1.uio.no ([129.240.10.29])
by pat.uio.no with esmtp (Exim 4.43)
id 1EBzzE-00009H-UG
for [EMAIL PROTECTED]; Sun, 04 Sep 2005 21:17:05 +0200
Received: from saruman.uio.no ([129.240.201.202])
by mail-mx1.uio.no with esmtp (Exim 4.43)
id 1EBzzC-00048E-5V; Sun, 04 Sep 2005 21:17:02 +0200
Received: from pre by saruman.uio.no with local (Exim 4.44)
id 1EBzzB-0007i0-GS; Sun, 04 Sep 2005 21:17:01 +0200
To: [EMAIL PROTECTED]
Subject: initscripts: Should not fsck when laptop is running on battery
From: Petter Reinholdtsen <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Sender: Petter Reinholdtsen <[EMAIL PROTECTED]>
Date: Sun, 04 Sep 2005 21:17:01 +0200
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.603, required 12,
autolearn=disabled, ALL_TRUSTED -2.82, AWL 2.22,
UIO_MAIL_IS_INTERNAL -5.00)
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: initscripts
Version: 2.86.ds1-1
Tags: patch
While reviewing the patches from Ubuntu, I came across a nice
improvement. Make sure to not run fsck if the machine is running on
battery. This would make the boot process a lot better for laptops.
This is the patch needed to make this happen. It is not a proper
patch, because I fished it out of the larger patch from ubuntu, but it
should be no problem to apply this manually to the check-scripts.
debian/initscripts/etc/init.d/checkfs.sh
FSCKFIX=no
[ -f /etc/default/rcS ] && . /etc/default/rcS
+# See if we're on AC Power
+# If not, we're not gonna run our check (Ubuntu #4680)
+if [ -x /usr/bin/on_ac_power ]; then
+ /usr/bin/on_ac_power >/dev/null 2>&1
+ if [ $? -eq 1 ]; then
+ echo "On battery, not fscking!"
+ ac=no
+ fi
+fi
+
#
# Check the rest of the file systems.
#
-if [ ! -f /fastboot ]
+if [ ! -f /fastboot ] && [ -z "$ac" ]
then
if [ -f /forcefsck ]
then
debian/initscripts/etc/init.d/checkroot.sh
/sbin/sulogin $CONSOLE
reboot -f
fi
+# See if we're on AC Power
+# If not, we're not gonna run our check (Ubuntu #4680)
+if [ -x /usr/bin/on_ac_power ] && [ $rootcheck = yes ]; then
+ /usr/bin/on_ac_power >/dev/null 2>&1
+ if [ "$?" -eq 1 ]; then
+ echo "On battery, not fscking!"
+ rootcheck=no
+ fi
+fi
+
#
#See if we want to check the root file system.
#
FSCKCODE=0
if [ -f /fastboot ] || [ $rootcheck = no ]
---------------------------------------
Received: (at 326647-done) by bugs.debian.org; 11 Sep 2005 17:50:44 +0000
>From [EMAIL PROTECTED] Sun Sep 11 10:50:44 2005
Return-path: <[EMAIL PROTECTED]>
Received: from pat.uio.no [129.240.130.16] (7411)
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1EEVyW-0001Uz-00; Sun, 11 Sep 2005 10:50:44 -0700
Received: from mail-mx1.uio.no ([129.240.10.29])
by pat.uio.no with esmtp (Exim 4.43)
id 1EEVyR-0004pw-KJ; Sun, 11 Sep 2005 19:50:39 +0200
Received: from saruman.uio.no ([129.240.201.202])
by mail-mx1.uio.no with esmtp (Exim 4.43)
id 1EEVyI-0005v8-Ll; Sun, 11 Sep 2005 19:50:30 +0200
Received: from pre by saruman.uio.no with local (Exim 4.44)
id 1EEVyH-0002mE-Cw; Sun, 11 Sep 2005 19:50:29 +0200
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: This bug is fixed now
From: Petter Reinholdtsen <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Sender: Petter Reinholdtsen <[EMAIL PROTECTED]>
Date: Sun, 11 Sep 2005 19:50:29 +0200
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.616, required 12,
autolearn=disabled, ALL_TRUSTED -2.82, AWL 2.20,
UIO_MAIL_IS_INTERNAL -5.00)
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 35
Version: 2.86.ds1-2
This bug was fixed with the upload of sysvinit version 2.86.ds1-2.
Not sure why this bug wasn't closed, but as a workaround I close it
no. This was the changelog of the upload closing this bug.
sysvinit (2.86.ds1-2) unstable; urgency=low
.
* This package is now maintained on Alioth as the pkg-sysvinit project.
* Add myself as uploader.
* Add support for linprocfs on kFreeBSD. Patch from Robert
Millan. (Closes: #300963)
* Rewrote /etc/mtab handling in mountvirtfs to work with SELinux.
Based on patch from Luke Kenneth Casson Leighton.
(Closes: #270919)
* Add SELinux support to sysvinit on linux. Add build-depend on
libselinux1-dev and libsepol1-dev for all linux archs. Patch from
Manoj Srivastava, based on patch from Fedora. (Closes: #242900,
#249515,#315611)
* Drop redundant build-depend on essensial package bash.
* Add version 0.47 of startpar(8) program from SuSe. Part of
experimental parallel booting system. Not included by default
yet, as it tend to hang during boot.
* Add support for starting init.d scripts on the same level in
parallel, to speed up the boot process a bit. Currently, only a
simple system is implemented (and enabled by adding
CONCURRENCY=shell in /etc/default/rcS). This simple system messes
up the script output during boot. Disabled by default. (Closes:
#316290)
* Add 'kdm xdm gdm $syslog' as conditional dependencies of
rmnologin, to move it further back in the boot process.
* Make sure bootlogd return non-error exit code after forking off
the child. (Closes: #326640)
* Add more warning flags to list of compiler flags, to get more
info about problematic code.
* Avoid race-condition while fork()ing. Patch from SuSe.
(Closes: #327612)
* Improve error message when fork() fail in init. Patch from SuSe.
* Avoid hardcoding tty name length in wall, use UT_LINESIZE instead.
Patch from SuSe.
* Force kernel to reschedule after killing processes. Patch from SuSe.
* Make sure killall never tries to kill init (pid 1). Patch from SuSe.
* Acknowledge NMUs. (Closes: #30659, #85221, #204857, #225476,
#247102, #248739 #252059, #267935, #269774, #269894, #272588,
#272916, #273496, #277204, #281782, #284426, #286081, #287243,
#288098, #289562, #295094, #295335, #296489, #300645, #311741,
#314351, #316431, #317385, #317704, #318453, #318857, #323749,
#325933, #326460, #326495, #326647)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]