Hi,
I experiment things, I try various methods to create jails.
1) untar archives directly (base.tar and lib32.tar, not txz) => jail = ~650Mo
2) use '
3) use '
Time is what I was looking at first(less is better), that's why I choose
I put '
Obviously
So far I tried '
question 1) what would be the right cp's option for that task? or is it because of the following from the cp man page ? :
I noticed also using
question 2) is it okay to use
thank you.
I experiment things, I try various methods to create jails.
1) untar archives directly (base.tar and lib32.tar, not txz) => jail = ~650Mo
2) use '
cpdup
' to copy the template => jail = ~650Mo3) use '
cp
' to copy the template => jail = ~2GoTime is what I was looking at first(less is better), that's why I choose
.tar
over .txz
I put '
zfs clone
' aside on purpose for this, because I want to try something else, it's experimental.Obviously
cp
copy things it shouldn't but I can't put my finger on the right option to make it not doing it.So far I tried '
cp -RP
' ' cp -Rx
', but it still make a bigger jail.question 1) what would be the right cp's option for that task? or is it because of the following from the cp man page ? :
At this point I am a bit lost ...Note that cp copies hard linked files as separate files. If you need to preserve hard
links, consider using tar(1), cpio(1), or pax(1) instead.
I noticed also using
cpdup
implies having to use chflags
to be able to delete entirely the jail (which doesn't happen with other methods).question 2) is it okay to use
cpdup
this way?thank you.
Last edited: