%global rversion 2.14-20260904 Name: grub2-snapper-plugin Version: 2.14~20260904 Release: 8%{?dist} Summary: Bootable snapshot integration for Grub2 License: GPL-2.0-only URL: https://codeberg.org/KalpaDesktop/grub2-snapper-plugin Source0: %{url}/releases/download/%{rversion}/%{name}-%{rversion}.tar.zst # Boot snapshots on Fedora (grub2-bls) from their BLS entries Patch0001: 0001-Boot-snapshots-from-Boot-Loader-Specification-entries.patch # Don't let --disable rewrite the BLS entries through grub2-mkconfig Patch0002: 0002-Don-t-run-grub2-mkconfig-on-disable-with-BLS-entries.patch # Escape snapshot descriptions in the generated GRUB config Patch0003: 0003-Quote-snapshot-titles-in-the-generated-GRUB-config.patch # Don't let concurrent runs overwrite each other's files Patch0004: 0004-Serialize-runs-of-the-plugin.patch # Don't source the snapshot's os-release Patch0005: 0005-Read-os-release-without-sourcing-it.patch # Don't offer BLS entries that can't boot Patch0006: 0006-Skip-boot-entries-whose-files-are-missing.patch BuildRequires: cmake Requires: grub2-common Requires: snapper Requires: btrfs-progs Requires: /usr/bin/flock BuildArch: noarch %description A GRUB2 plugin that integrates with snapper to add Btrfs snapshot boot entries to the GRUB2 menu. When snapper creates or removes read-only snapshots, this plugin updates the GRUB2 configuration so users can boot into any snapshot directly from the boot menu. %prep %autosetup -C -p1 %conf # Fedora's snapper loads its plugins from libexec, not lib %cmake -DCMAKE_INSTALL_LIBDIR=libexec %build %cmake_build %install %cmake_install %files %license LICENSE %{_libexecdir}/snapper/plugins/00-grub %{_sysconfdir}/grub.d/80_suse_btrfs_snapshot %changelog * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-8 - Skip BLS entries whose kernel or initrd is missing from the snapshot * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-7 - Read the snapshot's os-release without sourcing it * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-6 - Serialize runs of the plugin with flock * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-5 - Quote snapshot titles in the generated GRUB config * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-4 - Don't run grub2-mkconfig when disabling with BLS entries * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-3 - Install the snapper plugin in %%{_libexecdir}/snapper/plugins, where Fedora's snapper looks for plugins * Thu Oct 29 2026 Shawn W Dunn - 2.14~20260904-2 - Generate snapshot boot entries from Boot Loader Specification entries (grub2-bls), with rootflags=subvol= pointing at the snapshot * Fri Sep 04 2026 Shawn W Dunn - 2.14~20260904-1 - Update to Upstream release tarball * Sun Aug 23 2026 Shawn W Dunn - 0.1.339f590-1 - Update to 0.1.339f590 * Fri Jun 19 2026 Shawn W Dunn - 0.1.95f9bf7-2 - Initial Packaging