Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: helander on July 01, 2009, 07:29:55 PM

Title: Copy files from mounted tcz creates links and not regular files
Post by: helander on July 01, 2009, 07:29:55 PM
When I copy a file tree, either using cp or tar (tar create piped to tar unpack), from a loop mounted tcz to a loop mounted home, the regular files copied do not show up as regular files at the destination, but as links to the source files in the loop mounted tcz. What causes this behavior? Is it intentional? How could I circumvent it, so that regular copies are created at the destination?

/Lars
Title: Re: Copy files from mounted tcz creates links and not regular files
Post by: ^thehatsrule^ on July 01, 2009, 10:23:03 PM
It is intentional - it is the 'definition' of tcz's.  If this is not wanted, perhaps using .tce's would be better suited.

If you just want cp/tar to derefence all symlinks, there are flags that can be passed to those to do that.
Title: Re: Copy files from mounted tcz creates links and not regular files
Post by: helander on July 02, 2009, 03:50:48 AM
If you just want cp/tar to derefence all symlinks, there are flags that can be passed to those to do that.

It seems that cp have flags suitable for this, but I do not see that tar has, correct?
Title: Re: Copy files from mounted tcz creates links and not regular files
Post by: Jason W on July 02, 2009, 04:21:06 AM
Gnu tar has the --dereference flag for this.