Skip to content

set-default-snapshot doesn't work with entries with boot count #297

@danyspin97

Description

@danyspin97

When a boot entry has boot count enabled (i.e. opensuse-microos-6.15.8-1-default-4+3.conf), then sdbootutil set-default-snapshot 4 doesn't work, as it looks for an entry without the boot count.

localhost:~ # ls /boot/efi/loader/entries
opensuse-microos-6.15.8-1-default-1.conf  opensuse-microos-6.15.8-1-default-2.conf  opensuse-microos-6.15.8-1-default-3.conf  opensuse-microos-6.15.8-1-default-4+3.conf
localhost:~ # sdbootutil set-default-snapshot 4
ERROR: Boot loader entry opensuse-microos-6.15.8-1-default-4.conf not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions