On Thu, Mar 15, 2001 at 12:41:23PM -0600, Dave Sherohman wrote:
> 
> I was unclear in my question...  I'm definitely planning to do a read-only
> export from the server.  My concern is with how apt will behave if/when run
> on the workstations, where /usr will be forced to be ro by the ro export.
> 
> Many packages include files in /var, /etc, and/or other places besides /usr,
> some of which (like /etc) are not well-suited to being mounted off a common
> NFS directory.  Running apt seems like the most straightforward way to get
> those files installed/updated, but it will also want to change things in
> /usr, but be unable to do so.

apt itself doesn't care since it doesn't touch the filesystem except
for /var/cache/apt and /var/state/apt.   the problem comes when apt
asks dpkg to install a package, if the package has any file in /usr
(which it always will even if its only /usr/share/doc/package/*) then
dpkg will fail and the package will be broken.  

newwer versions of dpkg (may only be in CVS) i have heard have an
option to not install files in certain places, say /usr or
/usr/share.  to allow for this very situtation.  

for now pretty much your only option is this kludge:

drop to single user mode
umount /usr
apt-get
rm -rf /usr/*
mount /usr

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpjCaFuz8On7.pgp
Description: PGP signature

Reply via email to