-
Notifications
You must be signed in to change notification settings - Fork 22
Description
PKGBUILD for Arch:
https://github.com/silverhadch/sdbootutil-arch/blob/main/PKGBUILD
Issues Encountered:
-
Snapshot Naming Conflict:
sdbootutilassumes Btrfs snapshots follow the@root,@homeformat. However, Arch and CachyOS use numeric snapshot IDs (e.g., 1, 2, etc.), causingsdbootutilto fail when trying to locate the correct snapshot for bootloader configuration. -
Bootloader Installation Error:
systemd-bootinstallation fails becausesdbootutilexpects 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.
- 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.