Skip to content

Commit

Permalink
Fix issue with OVMF_CODE.fd symlink
Browse files Browse the repository at this point in the history
On subsequent runs this will fail because the link has already been
created, but it still fails the -f test because it's a link not
a file. Since we only care about existence and not the specific type
of this file, let's just check for existence with -e instead.
  • Loading branch information
cybertron committed Aug 29, 2024
1 parent 24aed67 commit 67c1871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02_configure_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ ansible-playbook \
# NOTE(elfosardo): /usr/share/OVMF/OVMF_CODE.fd does not exist in the ovmf
# package anymore, so we need to create a link to that until metal3-dev-env
# fixes that, probably when switching to UEFI by default
if ! [[ -f /usr/share/OVMF/OVMF_CODE.fd ]]; then
if ! [[ -e /usr/share/OVMF/OVMF_CODE.fd ]]; then
sudo ln -s /usr/share/edk2/ovmf/OVMF_CODE.fd /usr/share/OVMF/
fi

Expand Down

0 comments on commit 67c1871

Please sign in to comment.