lxc: fix decompression of rootfs tarballs
authorJohn Audia <therealgraysky@proton.me>
Tue, 16 Jul 2024 19:23:36 +0000 (15:23 -0400)
committerTianling Shen <cnsztl@gmail.com>
Mon, 24 Feb 2025 16:20:14 +0000 (00:20 +0800)
commit96c96fe04115de8d46639aaeeb63b94ed5dcb325
tree901ead04e48153e735d680adc2e42ca7e306d41b
parentb74dc8a119edd75454e03caa121ccb305fd29c3c
lxc: fix decompression of rootfs tarballs

Modified 025-remove-unsupported-option.patch to both remove
the bsdtar command as it ends in errors, see below, and to
circumvent an error when extracting to overlayfs[1].

Error when extracting rootfs tarball with bsdtar:
tar --absolute-names --numeric-owner '--xattrs-include=*' -xpJf /var/cache/lxc//download/archlinux/current/amd64//default/rootfs.tar.xz -C /mnt/data/lxc/test/rootfs
./usr/bin/newgidmap: Cannot restore extended attributes on this system: Illegal byte sequence
lxc-create: test: ../src/lxc/lxccontainer.c: create_run_template: 1589 Failed to create container from template
lxc-create: test: ../src/lxc/tools/lxc_create.c: lxc_create_main: 318 Failed to create container test

1. https://github.com/openwrt/openwrt/issues/15888

Signed-off-by: John Audia <therealgraysky@proton.me>
Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
utils/lxc/Makefile
utils/lxc/patches/025-remove-unsupported-option.patch