Skip to content

Keep standalone initramfs for grub-btrfs when UKI is enabled#4513

Merged
svartkanin merged 2 commits intoarchlinux:masterfrom
Softer:fix-4505-uki-grub-btrfs
May 6, 2026
Merged

Keep standalone initramfs for grub-btrfs when UKI is enabled#4513
svartkanin merged 2 commits intoarchlinux:masterfrom
Softer:fix-4505-uki-grub-btrfs

Conversation

@Softer
Copy link
Copy Markdown
Contributor

@Softer Softer commented May 2, 2026

Fixes #4505

When UKI and Grub are used together with btrfs snapshots (Snapper or Timeshift), _config_uki() no longer comments out *_image= lines in mkinitcpio presets and no longer deletes initramfs files. This lets mkinitcpio -P generate both UKI and standalone initramfs, so grub-btrfs can find initramfs-linux.img for snapshot boot entries.

Without this fix, _config_uki() unconditionally disables standalone initramfs generation, leaving grub-btrfs without a bootable kernel image for snapshots.

@Softer Softer requested a review from Torxed as a code owner May 2, 2026 11:27
Comment thread archinstall/scripts/guided.py Outdated
The grub-btrfs snapshot detection was in guided.py, forcing custom
script authors to replicate it. Since Installer already holds
disk_config, the check belongs inside add_bootloader().
@svartkanin svartkanin merged commit 1160785 into archlinux:master May 6, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

btrfs + snapper + grub-btrfs produces unbootable snapshots: UKI-only mkinitcpio preset leaves grub-btrfs without standalone initramfs

2 participants