From d8b5d79d22a88ffe8cb9b7ead28a9011485c91c8 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Thu, 29 Aug 2024 14:14:56 -0500 Subject: [PATCH] Fix issue with OVMF_CODE.fd symlink 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. --- 02_configure_host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_configure_host.sh b/02_configure_host.sh index 593c1a68e..7014f0d60 100755 --- a/02_configure_host.sh +++ b/02_configure_host.sh @@ -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