Your message dated Sun, 5 Dec 1999 20:02:51 -0700 (MST)
with message-id <[EMAIL PROTECTED]>
and subject line Remounting /usr RO
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.)
Darren Benham
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 5 Apr 1999 06:27:33 +0000
Received: (qmail 31393 invoked from network); 5 Apr 1999 06:21:30 -0000
Received: from faure.videotron.net (HELO sims-ha.videotron.net)
(205.151.222.100)
by master.debian.org with SMTP; 5 Apr 1999 06:21:30 -0000
Received: from gaia ([207.253.117.144]) by sims-ha.videotron.net (Sun Internet
Mail Server sims.3.5.1998.03.08.20.27)
with ESMTP id <[EMAIL PROTECTED]> for [EMAIL PROTECTED]; Mon, 5 Apr 1999
02:17:26 -0400 (EDT)
Received: from gaia (localhost) [127.0.0.1] (linh) by gaia with esmtp (Exim
2.11 #1 (Debian)) id 10Tywy-00049x-00; Mon,
05 Apr 1999 02:17:20 +0000
Date: Mon, 05 Apr 1999 02:17:19 +0000 (GMT)
From: Linh Dang <[EMAIL PROTECTED]>
Subject: apt keeps complaining about dpkg's post-invoke
Sender: Linh Dang <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
X-Mailer: Mew version 1.93 on Emacs 20.3 / Mule 4.0 (HANANOEN)
Content-type: Text/Plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Dispatcher: imput version 980905(IM100)
Lines: 37
Package: apt
Version: 0.3.3
when I install with apt, I keep getting this error message after dpkg
finished installing everything:
mount: /usr is busy
E: Problem executing scripts DPkg::Post-Invoke 'mount -o remount,ro /usr'
E: Sub-process returned an error code
My /etc/apt/apt.conf is:
DPkg
{
// Auto re-mounting of a readonly /usr
Pre-Invoke {"mount -o remount,rw /usr";};
Post-Invoke {"mount -o remount,ro /usr";};
}
I type 'mount -o remount,ro /usr', the mount is successful.
My system:
Package: dpkg
Version: 1.4.1.1
Package: libc6
Version: 2.1.1-0.1
Package: libstdc++2.9-glibc2.1
Version: 2.91.63-1.1
Linux gaia 2.2.3l1 #4 Sun Mar 14 04:01:29 EST 1999 i586 unknown
--
Linh Dang
---------------------------------------
Received: (at 35568-done) by bugs.debian.org; 6 Dec 1999 03:02:59 +0000
Received: (qmail 30512 invoked from network); 6 Dec 1999 03:02:57 -0000
Received: from crash.ab.videon.ca ([EMAIL PROTECTED])
by master.debian.org with SMTP; 6 Dec 1999 03:02:57 -0000
Received: from wakko.deltatee.com ([EMAIL PROTECTED] [24.108.53.97])
by crash.ab.videon.ca (8.9.2/8.9.2) with ESMTP id UAA26545
for <[EMAIL PROTECTED]>; Sun, 5 Dec 1999 20:02:52 -0700 (MST)
Received: from localhost (wakko.deltatee.com) [127.0.0.1] (jgg)
by wakko.deltatee.com with smtp (Exim 2.11 #1)
id 11uoQN-0003gx-00 (Debian); Sun, 5 Dec 1999 20:02:51 -0700
Date: Sun, 5 Dec 1999 20:02:51 -0700 (MST)
From: Jason Gunthorpe <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Remounting /usr RO
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Here is my take on this,
APT is carefull to advoid running things in /usr or opening files in /usr
RW. Given this I think being unable to remount user rw is due to either a
subtle kernel problem or just some ordinary race condition.
I belive the best solution to this is use the APT post invoke feature to
spawn a script which does sync; sleep; mount in a loop until /usr is
remounted properly. This way things like update-menus and other packaging
elements will not break the remount. In fact, I think just adding a sync
has a high chance of making the remount work OK.
Jason