Dean wrote:
> 
> I was going through the source for vsd-genskel.pl to get an
> idea about what exactly happens behind the scenes during skel
> creation.
> 
> There is one thing I am unsure of.  The script does a simple
> cp -a /usr into the skel directory.  Afterwards skel/usr/sbin
> is deleted and then recreated with:
> 
> mkdir ("$skelroot/usr/sbin", 0755);
>     foreach $file (@usr_sbin_progs) {
>         `cp -a /usr/sbin/$file $skelroot/usr/sbin/$file`;
>     }
> 
> How does the result of this loop differ from a simple "cp -a"?
> I assume that @usr_sbin_progs contains less than all of the
> files in /usr/sbin, but I am not sure how or why?

@usr_sbin_progs is defined in (/usr/local)/etc/vsd/freevsd.conf, and yes
it contains a sub-set of the programs in /usr/sbin. It was deemed that
there are a lot of programs in /usr/sbin that are not suitable for
inlcusion in a virtual server (sndconfig, netconfig etc), and so the
directory is deleted and recreated only to inlcude those programs
specifically defined. 

Does this help explain?
Damion.

Reply via email to