Skip to content

Magic Boot Rollback #75

@MichailiK

Description

@MichailiK

Related to #32.

For systems where you may not have easy access a system that fails to boot (like a VPS or remote server) it would be neat if wire could apply a new configuration for the next boot only.

This would require telling the bootloader to boot the new boot entry once this for us, and depends on the bootloader:

  • systemd-boot users can use bootctl set-oneshot <bootloader entry> as well as systemctl reboot --boot-loader-entry=<bootloader entry>
  • GRUB users can use grub-reboot <index of bootlooader entry>
  • For other bootloaders, users could specify their own script to run.

Some implementation details would need to be considered, e.g. how do we determine which bootloader the system uses? how do we determine the correct bootloader entry? how do we default to the previous generation? what should happen if setting the boot entry fails? perhaps specializations could be useful for this feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions