mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
tools/qemu: Install ovmf for x86
The previous commit moved ovmf to the packages instead of stashing it on the filesystem. This requires the package to be installed here. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
bf5a461ce5
commit
930c9c21df
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:9bcf61f605ef0ce36cc94d59b8eac307862de6e1 AS mirror
|
||||
FROM linuxkit/alpine:77c8dfc5860012c869a19d7a2c68e701469692c8 AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
@ -7,21 +7,12 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
qemu-img && \
|
||||
case $(uname -m) in \
|
||||
x86_64) \
|
||||
apk add --no-cache --initdb -p /out qemu-system-x86_64; \
|
||||
apk add --no-cache --initdb -p /out qemu-system-x86_64 ovmf; \
|
||||
;; \
|
||||
aarch64) \
|
||||
apk add --no-cache --initdb -p /out qemu-system-aarch64; \
|
||||
;; \
|
||||
esac
|
||||
|
||||
RUN case $(uname -m) in \
|
||||
x86_64) \
|
||||
mkdir -p /out/usr/share/ovmf \
|
||||
&& cp /usr/share/ovmf/bios.bin /out/usr/share/ovmf/bios.bin; \
|
||||
;; \
|
||||
aarch64) \
|
||||
;; \
|
||||
esac
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM scratch
|
||||
|
Loading…
Reference in New Issue
Block a user