Skip to content

Issues with porting sdbootutil to Arch Linux #227

@silverhadch

Description

@silverhadch

PKGBUILD for Arch:

https://github.com/silverhadch/sdbootutil-arch/blob/main/PKGBUILD

Issues Encountered:

  1. Snapshot Naming Conflict:

    sdbootutil assumes Btrfs snapshots follow the @root, @home format. However, Arch and CachyOS use numeric snapshot IDs (e.g., 1, 2, etc.), causing sdbootutil to fail when trying to locate the correct snapshot for bootloader configuration.

  2. Bootloader Installation Error:

    systemd-boot installation fails because sdbootutil expects the kernel/initramfs inside a non-existent @-formatted snapshot path.

    The error message:

install: der Aufruf von stat für '/.snapshots/@/snapshot/usr/lib/systemd/boot/efi/systemd-bootx64.efi' ist nicht möglich: Datei oder Verzeichnis nicht gefunden

This happens because the tool isn't recognizing numeric snapshot IDs correctly.

  1. Dropped Features for Compatibility:
  • Joey: Removed due to being specific to openSUSE.
  • TPC: Dropped because some of its functions depend on RPM-based package management, which is not present in Arch-based systems.
  • Dracut: Replaced with Mkinitcpio, which is standard in Arch-based systems.

Current Roadblock:

The snapshot naming issue prevents sdbootutil from properly integrating with Snapper in Arch-based setups. The tool needs to be modified to fallback to checking if the snapshots are numbered and are at the path:

/.snapshots/<number>/snapshot/usr/lib/systemd/boot/efi/systemd-bootx64.efi

instead of expecting the @ format. Without this fix, sdbootutil cannot correctly generate boot entries or configure systemd-boot on Arch-based systems.

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