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

Re: How to put files at a location determined at install-time.



On Mon, Dec 31, 2001 at 07:09:41PM +0100, Marc L. de Bruin wrote:
> So, the root-user might want the files to be physically installed on
> /raid1, e.g. /raid1/mydata, so that a user "blah" (/raid1/home/blah)
> can make a hardlink from /raid1/home/blah/afile to
> /raid1/mydata/afile.

if the local sysadmin wants this, then they can move-and-symlink the
directories to wherever they want.

e.g. say your package uses /var/foo, but the sysadmin wants that data to
be in /raid1/home/foo:

mv /var/foo /raid1/home/               # alternatively use "cp -af" or "tar" 
                                       # followed by "rm -rf"
ln -s /raid1/home/foo /var/


this doesn't require any weird or special-case handling in the package.
it's a fairly normal systems administration task.  for example, it's not
at all uncommon to move-and-symlink /usr/doc and /usr/share/doc to
another partition when the /usr partition is too small.

craig

-- 
craig sanders <cas@taz.net.au>

Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch



Reply to: