[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#35460: marked as done (cucipop: preinst remounts /usr without need)



Your message dated Sat, 3 Jul 1999 10:57:15 +1000
with message-id <19990703105715.A31589@rising.com.au>
and subject line [hamish@debian.org: Installed cucipop 1.31-8 (source i386)]
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'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 2 Apr 1999 16:31:26 +0000
Received: (qmail 19702 invoked from network); 2 Apr 1999 16:31:21 -0000
Received: from junior.ibcinc.com (198.22.130.72)
  by master.debian.org with SMTP; 2 Apr 1999 16:31:21 -0000
Received: from jones.argon.org (jones.argon.org [216.0.42.66])
	by junior.ibcinc.com (8.8.5/8.8.5/1.6/jr-1.17-l) with ESMTP id LAA27771;
	Fri, 2 Apr 1999 11:31:16 -0500 (EST)
Received: (from roderick@localhost)
	by jones.argon.org (8.9.3/8.9.3/Debian/GNU) id LAA06631;
	Fri, 2 Apr 1999 11:31:15 -0500
Date: Fri, 2 Apr 1999 11:31:15 -0500
Message-Id: <199904021631.LAA06631@jones.argon.org>
From: Roderick Schertler <roderick@argon.org>
Subject: cucipop: preinst remounts /usr without need
To: submit@bugs.debian.org
X-Mailer: bug 3.1.7

Package: cucipop
Version: 1.31-7

The preinst says

    if [ "$(mount | grep 'on /usr' | grep ro)" != "" ]
    then
	echo "Remounting the /usr filesystem read-write (forgetful, aren't we?)"
	mount -o remount,rw /usr
    fi

I don't understand why it does this (surely unpacking the .deb would
fail if /usr were read-only, and it is not each individual package's
responsibility to handle this situation), but at the least it should
get it right.  This code was tripped here because mount says

    /dev/hdc1 on /usr type ext2 (rw,errors=remount-ro)

and the code mistook the remount-ro.  If the code must stay, please at
least fix it up, perhaps like

    mount | awk '$3 == "/usr" && $6 ~ /^\(ro,/' 

or

    mount | perl -wane '$ok = 1 if $F[2] eq "/usr" && $F[5] =~ /^\(rw[,)]/;
			END { $? = 1 unless $ok }'

-- System Information
Debian Release: potato
Kernel Version: Linux jones 2.2.3-jones.2 #1 Sat Mar 13 12:25:33 EST 1999 i686 unknown

Versions of the packages cucipop depends on:
ii  netbase         3.14-1         Basic TCP/IP networking binaries
ii  netstd          3.07-7slink.3  Networking binaries and daemons for Linux
ii  libc6           2.1.1-0.1      GNU C Library: shared libraries
ii  libdb2          2.4.14-5       The Berkeley database routines (run-time fil


Reply to: