From 56c26b3d9cc67760d89f8b7feac7c88ffad55cc2 Mon Sep 17 00:00:00 2001 From: Michael Zhao Date: Thu, 23 Sep 2021 08:57:07 +0800 Subject: [PATCH] resource: Install libguestfs-tools in Docker image Installed `libguestfs-tools` to replace kernel file in cloud image. Installed a kernel as `libguestfs-tools` requires. Signed-off-by: Michael Zhao --- resources/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/Dockerfile b/resources/Dockerfile index 8a3f37acd..e3bfab433 100644 --- a/resources/Dockerfile +++ b/resources/Dockerfile @@ -59,9 +59,14 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \ RUN if [ "$TARGETARCH" = "arm64" ]; then \ # On AArch64, `setcap` binary should be installed via `libcap2-bin`. # The `setcap` binary is used in integration tests. + # `libguestfs-tools` is used for modifying cloud image kernel, and it requires + # kernel (any version) image in `/boot` and modules in `/lib/modules`. apt-get update \ && apt-get -yq upgrade \ - && DEBIAN_FRONTEND=noninteractive apt-get install -yq libcap2-bin \ + && DEBIAN_FRONTEND=noninteractive apt-get install -yq \ + libcap2-bin \ + libguestfs-tools \ + linux-image-5.8.0-63-generic \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*; fi