]> git.ipfire.org Git - thirdparty/lxc.git/commit
Add libarchive tar support for lxc download 4321/head
authorLevent Komurcu <levent.komurcu@nl.bosch.com>
Mon, 26 Jun 2023 07:23:30 +0000 (09:23 +0200)
committerLevent Komurcu <levent.komurcu@nl.bosch.com>
Mon, 26 Jun 2023 07:23:30 +0000 (09:23 +0200)
commit64167f90647b4c107f58ff9144710cf2363e8e4c
tree1c1eaf37d74851e9a6d26f4aa9f60c4b6859d11a
parent213e2f68d90ed63e6338329daf566a79b64dee76
Add libarchive tar support for lxc download

This patch fixes unpacking images when the system provided tar is libarchive (bsd-tar). bsd-tar  doesn't support 'exclude' flags (--anchored) like gnu-tar does. Instead each exclude path is prepended with ^ to simulate behavior of --anchored when bsd tar is detected.

Signed-off-by: Levent Komurcu <levent.komurcu@nl.bosch.com>
templates/lxc-download.in