On Sat, Oct 10, 2020 at 04:30:15PM +0800, Wu Fengguang wrote:
I find openEuler has busybox package now, so perhaps this trick is not necessary.
got it, Thanks, Shenwei
Thanks, Fengguang
On Sat, Oct 10, 2020 at 10:27:06AM +0800, Xiao Shenwei wrote:
add apt-get install -y busybox then copy it to host
Signed-off-by: Xiao Shenwei xiaoshenwei96@163.com
container/qemu-efi/Dockerfile | 2 +- container/qemu-efi/install | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/container/qemu-efi/Dockerfile b/container/qemu-efi/Dockerfile index e1087c5..ced7f66 100644 --- a/container/qemu-efi/Dockerfile +++ b/container/qemu-efi/Dockerfile @@ -8,4 +8,4 @@ ENV DEBIAN_FRONTEND noninteractive COPY conf/sources.list* /etc/apt/ RUN apt-get update && \ apt-get install -y --no-install-recommends apt-utils > /dev/null 2>&1 && \
- apt-get install -y qemu-efi-aarch64
- apt-get install -y qemu-efi-aarch64 busybox
diff --git a/container/qemu-efi/install b/container/qemu-efi/install index 96be9aa..bc61b9a 100755 --- a/container/qemu-efi/install +++ b/container/qemu-efi/install @@ -12,4 +12,7 @@ cmd=(
"${cmd[@]}" docker cp qemu-efi:/usr/share/qemu-efi-aarch64 /usr/share/qemu-efi-aarch64 +[ -f "/usr/bin/busybox" ] || {
- docker cp qemu-efi:/bin/busybox /usr/bin/busybox
+} docker_rm qemu-efi -- 2.23.0