Re: /usr/etc
* Jacob Kuntz <jake@capecodvacation.com> [2000-12-19T20:31-0500]:
> need to be checked). one could just mount -o remount,rw /usr before running
> apt.
There is an automatic way...
[505]$ mount|grep /usr
/dev/sda6 on /usr type ext2 (ro)
[506]$ cat /etc/apt/apt.conf
DPkg
{
// Auto re-mounting of a readonly /usr
Pre-Invoke {"mount -o remount,rw /usr";};
Post-Invoke {"mount -o remount,ro /usr";};
// Prevents daemons from getting cwd as something mountable (default)
Run-Directory "/";
}
[507]$
However, remounting ro sometimes fails after updating daemon packages,
because of left-over open file handles, IIRC. They can be identified
with lsof...
Cheers,
Michael
Reply to: