Skip to content

Commit

Permalink
"secure boot" not getting enabled for Chipset/Firmware Type "Q35 Chip…
Browse files Browse the repository at this point in the history
…set with UEFI SecureBoot"

Issue:
When VM emulator is changed to Q35 Chipset with UEFI SecureBoot from Q35 Chipset with UEFI, the NVRAM file needs to be rewritten.

Fix:
On VM update remove the previous NVRAM file.

Signed-off-by: Saksham Srivastava saksham.sa.srivastava@oracle.com
  • Loading branch information
saksham-oracle committed Jan 11, 2024
1 parent 8d47cd7 commit 5a8d2c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packaging/dbscripts/vms_sp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2507,6 +2507,10 @@ BEGIN
DELETE FROM vm_nvram_data
WHERE vm_id = OLD.vm_guid;
END IF;
IF OLD.bios_type = 3 AND NEW.bios_type = 4 THEN
DELETE FROM vm_nvram_data
WHERE vm_id = OLD.vm_guid;
END IF;
RETURN NEW;
END;$$
LANGUAGE plpgsql;
Expand Down

0 comments on commit 5a8d2c4

Please sign in to comment.