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. Also check for -L to fix this.
  • Loading branch information
cybertron committed Nov 15, 2024
1 parent 24aed67 commit d8b5d79
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 ! [[ -f /usr/share/OVMF/OVMF_CODE.fd || -L /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 d8b5d79

Please sign in to comment.