File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
internal/server/instance/drivers Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2220,11 +2220,18 @@ func (d *qemu) setupNvram() error {
2220
2220
return err
2221
2221
}
2222
2222
2223
+ nvramPath := d .nvramPath ()
2224
+
2225
+ // Handle the case where the firmware vars filename matches our internal one.
2226
+ if efiVarsName == filepath .Base (nvramPath ) {
2227
+ return nil
2228
+ }
2229
+
2223
2230
// Generate a symlink.
2224
2231
// This is so qemu.nvram can always be assumed to be the EDK2 vars file.
2225
2232
// The real file name is then used to determine what firmware must be selected.
2226
- _ = os .Remove (d . nvramPath () )
2227
- err = os .Symlink (efiVarsName , d . nvramPath () )
2233
+ _ = os .Remove (nvramPath )
2234
+ err = os .Symlink (efiVarsName , nvramPath )
2228
2235
if err != nil {
2229
2236
return err
2230
2237
}
You can’t perform that action at this time.
0 commit comments