Skip to content

Commit 83055f3

Browse files
authored
Fix issue with OVMF_CODE.fd symlink (#1698)
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.
1 parent be7d6e4 commit 83055f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

02_configure_host.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ ansible-playbook \
157157
# NOTE(elfosardo): /usr/share/OVMF/OVMF_CODE.fd does not exist in the ovmf
158158
# package anymore, so we need to create a link to that until metal3-dev-env
159159
# fixes that, probably when switching to UEFI by default
160-
if ! [[ -f /usr/share/OVMF/OVMF_CODE.fd ]]; then
160+
if ! [[ -f /usr/share/OVMF/OVMF_CODE.fd || -L /usr/share/OVMF/OVMF_CODE.fd ]]; then
161161
sudo ln -s /usr/share/edk2/ovmf/OVMF_CODE.fd /usr/share/OVMF/
162162
fi
163163

0 commit comments

Comments
 (0)