We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a352777 commit 02bdc72Copy full SHA for 02bdc72
internal/server/instance/drivers/driver_qemu.go
@@ -2215,11 +2215,16 @@ func (d *qemu) setupNvram() error {
2215
return err
2216
}
2217
2218
+ nvramPath := d.nvramPath()
2219
+ if efiVarsName == filepath.Base(nvramPath) { // Skip to link qemu.nvram to itself
2220
+ return nil
2221
+ }
2222
+
2223
// Generate a symlink.
2224
// This is so qemu.nvram can always be assumed to be the EDK2 vars file.
2225
// The real file name is then used to determine what firmware must be selected.
- _ = os.Remove(d.nvramPath())
- err = os.Symlink(efiVarsName, d.nvramPath())
2226
+ _ = os.Remove(nvramPath)
2227
+ err = os.Symlink(efiVarsName, nvramPath)
2228
if err != nil {
2229
2230
0 commit comments