Skip to content

incus copy src dst -c security.secureboot=false does not update ovmf vars #2948

@masnax

Description

@masnax

Is there an existing issue for this?

  • There is no existing issue for this bug

Is this happening on an up to date version of Incus?

  • This is happening on a supported version of Incus

Incus system details

server_version: "6.21"

Instance details

No response

Instance log

No response

Current behavior

No response

Expected behavior

No response

Steps to reproduce

If src has security.secureboot=true, performing incus copy src dst -c security.secureboot=false will not update the OVMF_VARS file, making the VM unbootable.

After copy:

-rw-r--r-- 1 root  root      540672 Feb 16 21:07 OVMF_VARS.4MB.ms.fd
lrwxrwxrwx 1 root  root          19 Feb 16 21:07 qemu.nvram -> OVMF_VARS.4MB.ms.fd

If then performing incus config set security.secureboot=true followed by incus config set security.secureboot=false, then the files will be updated:

-rw-r--r-- 1 root  root      540672 Feb 17 11:52 OVMF_VARS.4MB.fd
lrwxrwxrwx 1 root  root          16 Feb 17 11:52 qemu.nvram -> OVMF_VARS.4MB.fd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions