Re: How to Pre-Invoke {"mount -o remount,rw /usr";}; with /etc/apt/apt.conf?
On Tue, 30 Nov 1999, Shaul Karl wrote:
> i have:
>
> DPkg
> {
> // Auto re-mounting of readonly /usr
> Pre-Invoke {"mount -o remount,rw /usr";};
> Post-Invoke {"mount -o remount,ro /usr";};
> }
>
> which always works for mounting rw but does not always work for
> remounting ro because after install/upgrades for some reason mount
> thinks /usr is busy and refuses to remount it read only. very
> irritating especially since i have not found any files opened with
> write permission with fuser...
If you replace a program which is running, the old executable file
is not actually deleted until the last instance of the program has
terminated. Therefore the file system cannot be remounted read only.
If you kill or restart all such programs, you should be able to
remount /usr read only.
Martin
--
Martin Dickopp Email: dickopp@pktw06.phy.tu-dresden.de
Inst. f. Kern- und Teilchenphysik, TU Dresden, 01062 Dresden, Germany
Office ASB E22 Phone +49-351-463-3107 Fax +49-351-463-3114
Reply to: