Hello,

Quick excerpt outta vsd-vsbatch.pl for you:

  # Files are copied as hard links except /etc
  system ("cp -al $skelroot/* $vsdir");
  system ("rm -r -f $vsdir/etc $vsdir/home/httpd");
  system ("cp -a $skelroot/etc $vsdir");
  system ("cp -a $skelroot/home/httpd $vsdir/home");

everything apart from /etc and the /home/httpd dirs are hardlinks.

Damion.

Ben Kennish wrote:
> 
> Thanks Dave.
> 
> Now all I want to know is, when freeVSD is creating a new VS based on
> skel X, how does it know which files to hard link and which ones to
> copy?
> 
> Bye
> 
> Ben K
> 
> ----- Original Message -----
> From: "Dave Cost" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 15, 2002 11:23 PM
> Subject: RE: The skel
> 
> Hey Ben,
> 
> Best practise when you do what you're doing is to make a new skel by
> copying
> all files from the old skel to a new one and updating files there, then
> register the new skel with freevsd and then relink the virtuals.
> Anything
> else and you're looking for trouble.
> 
> You're not always working on the original file when
> copying/tarring/installing etc etc. Some utilities will create a
> temporary
> file, copy stuff there, then unlink the old file and rename the new one.
> This way you update a new file and not the one linked with the hard
> link. So
> you get a new version in one vds and an old hardlink in the other
> places.
> 
> So, follow best practise and you're set ;-)
> 
> Dave.
> 
> ------------------------- The freeVSD Support
> List --------------------------
> Subscribe:
> mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
> Unsubscribe:
> mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
> Archives:    http://freevsd.org/support/mail-archives/freevsd-support
> ------------------------------------------------------------------------
> -----
> 
> ------------------------- The freeVSD Support List --------------------------
> Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
> Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
> Archives:    http://freevsd.org/support/mail-archives/freevsd-support
> -----------------------------------------------------------------------------
------------------------- The freeVSD Support List --------------------------
Subscribe:   mailto:[EMAIL PROTECTED]?body=subscribe%20freevsd-support
Unsubscribe: mailto:[EMAIL PROTECTED]?body=unsubscribe%20freevsd-support
Archives:    http://freevsd.org/support/mail-archives/freevsd-support
-----------------------------------------------------------------------------

Reply via email to