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 @@ -2243,11 +2243,18 @@ func (d *qemu) setupNvram() error {
2243
2243
return err
2244
2244
}
2245
2245
2246
+ nvramPath := d .nvramPath ()
2247
+
2248
+ // Handle the case where the firmware vars filename matches our internal one.
2249
+ if efiVarsName == filepath .Base (nvramPath ) {
2250
+ return nil
2251
+ }
2252
+
2246
2253
// Generate a symlink.
2247
2254
// This is so qemu.nvram can always be assumed to be the EDK2 vars file.
2248
2255
// The real file name is then used to determine what firmware must be selected.
2249
- _ = os .Remove (d . nvramPath () )
2250
- err = os .Symlink (efiVarsName , d . nvramPath () )
2256
+ _ = os .Remove (nvramPath )
2257
+ err = os .Symlink (efiVarsName , nvramPath )
2251
2258
if err != nil {
2252
2259
return err
2253
2260
}
You can’t perform that action at this time.
0 commit comments