Skip to content

Commit d8d409a

Browse files
committed
qemu: LIMA_QEMU_UEFI_IN_BIOS -> _LIMA_QEMU_UEF_IN_BIOS
Partial cherry-pick of 0705db1 (PR 3347) from the master branch. This is not a breaking change, as there is still no release that supports `LIMA_QEMU_UEFI_IN_BIOS`. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent 29dabb7 commit d8d409a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/qemu/qemu.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,10 @@ func Cmdline(ctx context.Context, cfg Config) (exe string, args []string, err er
603603
if !legacyBIOS {
604604
var firmware string
605605
firmwareInBios := runtime.GOOS == "windows"
606-
if envVar := os.Getenv("LIMA_QEMU_UEFI_IN_BIOS"); envVar != "" {
607-
b, err := strconv.ParseBool(os.Getenv("LIMA_QEMU_UEFI_IN_BIOS"))
606+
if envVar := os.Getenv("_LIMA_QEMU_UEFI_IN_BIOS"); envVar != "" {
607+
b, err := strconv.ParseBool(os.Getenv("_LIMA_QEMU_UEFI_IN_BIOS"))
608608
if err != nil {
609-
logrus.WithError(err).Warnf("invalid LIMA_QEMU_UEFI_IN_BIOS value %q", envVar)
609+
logrus.WithError(err).Warnf("invalid _LIMA_QEMU_UEFI_IN_BIOS value %q", envVar)
610610
} else {
611611
firmwareInBios = b
612612
}

website/content/en/docs/config/environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ This page documents the environment variables used in Lima.
6767
export LIMA_USERNET_RESOLVE_IP_ADDRESS_TIMEOUT=5
6868
```
6969

70-
### `LIMA_QEMU_UEFI_IN_BIOS`
70+
### `_LIMA_QEMU_UEFI_IN_BIOS`
7171

7272
- **Description**: Commands QEMU to load x86_64 UEFI images using `-bios` instead of `pflash` drives.
7373
- **Default**: `false` on Unix like hosts and `true` on Windows hosts
7474
- **Usage**:
7575
```sh
76-
export LIMA_QEMU_UEFI_IN_BIOS=true
76+
export _LIMA_QEMU_UEFI_IN_BIOS=true
7777
```
7878
- **Note**: It is expected that this variable will be set to `false` by default in future
7979
when QEMU supports `pflash` UEFI for accelerated guests on Windows.

0 commit comments

Comments
 (0)