lxc: add gnu-tar as a depends to fix lxc-create
authorJohn Audia <therealgraysky@proton.me>
Fri, 12 Jul 2024 17:57:10 +0000 (13:57 -0400)
committerTianling Shen <cnsztl@gmail.com>
Mon, 24 Feb 2025 16:20:14 +0000 (00:20 +0800)
Add gnu-tar as a dependency for lxc-create which is needed to
properly extract the root file system tarball. Without it,
symlink target of /bin/tar is busybox and it lacks proper
support to extract with xattrs.  The default gnu-tar is actually
built without this support as well, but it is able to extract
the rootfs tarballs with a warning not an error which is not the
case with busybox which ends in an error.

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

utils/lxc/Makefile

index f343e7885e7cd0ec3782c9c4ce2da0cb5f4623b0..90ff7f4b963d087b7de3f912cd827f73953486c4 100644 (file)
@@ -50,7 +50,7 @@ LXC_SCRIPTS += \
 
 DEPENDS_APPLETS = +libpthread +libcap +liblxc
 
-DEPENDS_create = +lxc-configs +lxc-hooks +lxc-templates +flock +getopt
+DEPENDS_create = +lxc-configs +lxc-hooks +lxc-templates +flock +getopt +tar
 
 define Package/lxc/Default
   SECTION:=utils