mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
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 <michael.zhao@arm.com>
This commit is contained in:
parent
2280be825e
commit
56c26b3d9c
@ -59,9 +59,14 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
|||||||
RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
||||||
# On AArch64, `setcap` binary should be installed via `libcap2-bin`.
|
# On AArch64, `setcap` binary should be installed via `libcap2-bin`.
|
||||||
# The `setcap` binary is used in integration tests.
|
# 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 update \
|
||||||
&& apt-get -yq upgrade \
|
&& 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 \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*; fi
|
&& rm -rf /var/lib/apt/lists/*; fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user