and invalidate the old cache.
- Resolve symlinks in fs rmmount.
- Include PID in byte-range lock warning.
+ * Preserve the AFS mount point and cache directorys set in
+ /etc/openafs/cacheinfo if the file already exists rather than
+ overwriting them with the defaults. Thanks, Liam Healy.
+ (Closes: #580077)
-- Russ Allbery <rra@debian.org> Tue, 04 May 2010 16:13:13 -0700
fi
fi
+ # Our config script will have already taken care of extracting the cache
+ # size from the cacheinfo file and using it as the default for the debconf
+ # prompt, but the mount point and cache directory have no debconf prompts.
+ # For those, we need to get the default from the file.
+ mountpoint=/afs
+ cachedir=/var/cache/openafs
+ if [ -r /etc/openafs/cacheinfo ] ; then
+ IFS=: read mountpoint cachedir < /etc/openafs/cacheinfo
+ fi
db_get openafs-client/cachesize
- echo /afs:/var/cache/openafs:$RET >/etc/openafs/cacheinfo
+ echo "${mountpoint}:${cachedir}:${RET}" > /etc/openafs/cacheinfo
echo <<'EOF' > /etc/openafs/afs.conf.client
# This file is managed by debconf. You may change the parameters set below,