From f23451de01ecf815d29e8b67e77ac7f299d14b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Thu, 25 Jan 2024 11:56:08 +0100 Subject: [PATCH] rootfs: Add xz as a dep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As we'll be untarring the agent tarball (and any other component that may be part of the rootfs) into the rootfs, we have to have xz installed. For debian and ubuntu the package is called xz-utils; for centos, alpine and cbl-mariner the package is called xz. Signed-off-by: Fabiano FidĂȘncio --- tools/osbuilder/rootfs-builder/alpine/Dockerfile.in | 3 ++- tools/osbuilder/rootfs-builder/cbl-mariner/Dockerfile.in | 3 ++- tools/osbuilder/rootfs-builder/centos/Dockerfile.in | 3 ++- tools/osbuilder/rootfs-builder/debian/Dockerfile.in | 3 ++- tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tools/osbuilder/rootfs-builder/alpine/Dockerfile.in b/tools/osbuilder/rootfs-builder/alpine/Dockerfile.in index c9c4f0fba1..3131592c43 100644 --- a/tools/osbuilder/rootfs-builder/alpine/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/alpine/Dockerfile.in @@ -25,6 +25,7 @@ RUN apk update && apk add --no-cache \ musl \ musl-dev \ protoc \ - tar + tar \ + xz # aarch64 requires this name -- link for all RUN ln -s /usr/bin/gcc "/usr/bin/$(uname -m)-linux-musl-gcc" diff --git a/tools/osbuilder/rootfs-builder/cbl-mariner/Dockerfile.in b/tools/osbuilder/rootfs-builder/cbl-mariner/Dockerfile.in index 6fa29807d9..5cb4cef64d 100644 --- a/tools/osbuilder/rootfs-builder/cbl-mariner/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/cbl-mariner/Dockerfile.in @@ -10,6 +10,7 @@ RUN tdnf -y install \ build-essential \ dnf \ git \ - tar + tar \ + xz @INSTALL_RUST@ diff --git a/tools/osbuilder/rootfs-builder/centos/Dockerfile.in b/tools/osbuilder/rootfs-builder/centos/Dockerfile.in index fce8059947..693aea1c8d 100644 --- a/tools/osbuilder/rootfs-builder/centos/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/centos/Dockerfile.in @@ -13,6 +13,7 @@ RUN dnf -y update && \ file \ g++ \ git \ - protobuf-compiler + protobuf-compiler \ + xz @INSTALL_RUST@ diff --git a/tools/osbuilder/rootfs-builder/debian/Dockerfile.in b/tools/osbuilder/rootfs-builder/debian/Dockerfile.in index 0220598570..f8c26b8c33 100644 --- a/tools/osbuilder/rootfs-builder/debian/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/debian/Dockerfile.in @@ -32,7 +32,8 @@ RUN apt-get update && apt-get --no-install-recommends install -y \ systemd \ tar \ vim \ - wget + wget \ + xz-utils # aarch64 requires this name -- link for all RUN ln -s /usr/bin/musl-gcc "/usr/bin/$(uname -m)-linux-musl-gcc" diff --git a/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in b/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in index 61307e9560..03a34784e7 100644 --- a/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/ubuntu/Dockerfile.in @@ -27,7 +27,8 @@ RUN apt-get update && \ makedev \ multistrap \ musl-tools \ - protobuf-compiler + protobuf-compiler \ + xz-utils # aarch64 requires this name -- link for all RUN ln -s /usr/bin/musl-gcc "/usr/bin/$(uname -m)-linux-musl-gcc"