<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Jim Kinney" &lt;jim.kinney@gmail.com&gt;<br><b>To: </b>"Atlanta Linux Enthusiasts" &lt;ale@ale.org&gt;<br><b>Sent: </b>Tuesday, September 27, 2016 6:25:14 PM<br><b>Subject: </b>Re: [ale] Tar with links</blockquote><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">Hmm. Cool hack. I thought cp -a was OK with full path links.<br></blockquote><div><br></div><div>The problem is that cp is being told to archive /lib/udev, but there are links in there that point to ../../usr/pkg........ &nbsp;</div><div><br data-mce-bogus="1"></div><div>The hack is on the idea of I really want /lib/udev &nbsp;to be copied to another / and everything that exists outside of /lib/udev as links in /lib/udev should be considered part of what I need.</div><div><br data-mce-bogus="1"></div><div>Where the GNU stow idea breaks is when scripts use '-f' test. &nbsp;Almost no file exists outside of /usr/pkg/* I've taken GNU Stow far past its intention. &nbsp;If you look at the script in the mkinitramfs link you will see many '-f'. &nbsp;I've changed some of those. &nbsp;The kernel module 'find ... -f' works because I told stow to not fold that package. &nbsp;/lib/modules/4.7.2 is a link that points into /usr/pkg/..... &nbsp;In simple terms 'no-folding' means that stow creates real directories when needed. &nbsp;The opposite is that it will stop recursion in the tree and just symlink the directory instead. So, with folding turned off /lib/modules/4.7.2 is a link. &nbsp;With folding turned on it is a directory.</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div></div></div></body></html>