Skip to content

Commit

Permalink
pillar: Add OVMF_VARS.fd to pillar container.
Browse files Browse the repository at this point in the history
This commit copies OVMF_VARS.fd into the pillar container by adding it
to /usr/lib/xen/boot/ovmf_vars.bin. It is important that the file is
available in the pillar container because Pillar will create per-domain
copies of it stored in /persist, which are then accessible to the
xen-tools container. This sets the groundwork for enabling virtual
machines to save and retain UEFI settings across reboots by using
per-domain NVRAM files.

Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
  • Loading branch information
OhmSpectator committed Sep 16, 2024
1 parent 08b8138 commit de20319
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/pillar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
FROM lfedge/eve-fscrypt:0b7cc0d9d620e47fc54e21d56cb8a5cd224f9c9b as fscrypt

FROM lfedge/eve-uefi:d821658883d6748d8bbf0d6640c62288e3ce8c6f as uefi-build
FROM lfedge/eve-dom0-ztools:417d4ff6a57d2317c9e65166274b0ea6f6da16e2 as zfs
RUN mkdir /out
# copy zfs-related files from dom0-ztools using prepared list of files
Expand Down Expand Up @@ -80,6 +81,9 @@ RUN set -e && for patch in /sys-patches/*.patch; do \
patch -p0 --no-backup-if-mismatch -r /tmp/deleteme.rej < "$patch"; \
done

RUN mkdir -p /out/usr/lib/xen/boot
COPY --from=uefi-build /OVMF_VARS.fd /out/usr/lib/xen/boot/ovmf_vars.bin

# we need zfs files on running system
COPY --from=zfs /out /out

Expand Down

0 comments on commit de20319

Please sign in to comment.