[colug-432] Tar and symbolic links...

Rick Troth rmt at casita.net
Sat Jun 20 22:18:35 EDT 2015


GNU TAR ignores sym-links to absolute paths in some cases. I think it's
the default. It's a safety feature.


On 06/20/2015 07:41 PM, Joshua Kramer wrote:
> Hello,
>
> I am working on an embedded device.  I want to preserve the CF card;
> it is the only storage on the device.  So, I figured I would try to
> put /var in a RAM disk.  I found a handy link describing how to do
> this:
>
> http://stackoverflow.com/questions/11075459/mount-var-on-ramdisk-at-boot-bash-script-issue
>
> I didn't follow those directions exactly; instead, I use the scripts
> as they were but created systemd services for startup and shutdown.
> This works great, except for one thing... symbolic links!
>
> Under EL7, /var/run is linked to /run, and /var/lock is linked to
> /run/lock.  When the first script runs (the script that un-tar's /var
> into the RAM disk), .var/run and /var/lock never get created properly.
>
> Is there some way to force tar to capture these links?
>
> Platform: Raspberry Pi 2, RedSleeve Enterprise Linux 7.  (RedSleeve is
> a RedHat clone for 32-bit ARM systems.)
>
> Thanks!
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432



More information about the colug-432 mailing list