You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I extract the flatten.tar (tar -xvf ...), I get
gfrankliu@gfrankliu /tmp/flatten $ ls -lR
.:
total 8
drwxr-xr-x 2 gfrankliu primarygroup 4096 Jun 21 17:11 bin
drwxr-xr-x 3 gfrankliu primarygroup 4096 Jun 21 17:30 usr
./bin:
total 0
-rw-r--r-- 1 gfrankliu primarygroup 0 Jun 21 17:11 test
./usr:
total 4
drwxr-xr-x 2 gfrankliu primarygroup 4096 Jun 21 17:30 bin
./usr/bin:
total 0
As you can see, the symlink /bin got deleted, so pkg_tar doesn't seem to create the correct flatten tar file. The exploded directories from if I manually untar file1.tar, file2.tar, vs if I untar the flatten.tar look different.
The text was updated successfully, but these errors were encountered:
Looks like release 1.0.0 introduced pkg_tar create_parents attribute that I can set to False to fix the issue in my test example above where "file2.tar" only includes the file, not the parent directory.
The new create_parents attribute wouldn't help if file2.tar includes the parent directory, eg, using the new file2.tar:
So "bin" (parent directory) is there, just like in my new test file2.tar. Adding this new iproute2 tar would remove the Debian 12 bin -> usr/bin symlink, and create a new bin with only files from iproute2. In this case, /bin/sh will be gone, since bin->usr/bin link is gone.
aiuto
added
the
P2
An issue that should be worked on when time is available
label
Jun 30, 2024
I tried pkg_tar to flatten the tar files:
I created 2 test tar files:
If I manually untar file1 and then file2, I get correct result:
If I use pkg_tar:
The resulting tar tvf flatten.tar looks like this:
If I extract the flatten.tar (tar -xvf ...), I get
As you can see, the symlink /bin got deleted, so pkg_tar doesn't seem to create the correct flatten tar file. The exploded directories from if I manually untar file1.tar, file2.tar, vs if I untar the flatten.tar look different.
The text was updated successfully, but these errors were encountered: