-
Notifications
You must be signed in to change notification settings - Fork 931
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VM: Fix nvram file update from 2MB OVMF and CSM mode (#14555)
Because the LXD snap no longer ships these files they were not being detected as candidates which meant the logic to detect their usage and trigger an upgrade was not working. LXD 6.1 <= didn't check for the existence of the firmware candidates which meant the upgrade logic still worked. Instead change the logic to resolve the nvram target path to the OVMF vars file and then perform the 2MB/CSM logic on the target path file name instead. Also move this out of `generateQemuConfigFile` and combine with the existing logic in `start` to detect when the nvram file needs to be (re)generated.
- Loading branch information
Showing
1 changed file
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters