Name: grub-btrfs Version: 4.14 Release: 1%{?dist} Summary: Include btrfs snapshots at GRUB boot options License: GPL-3.0-only URL: https://github.com/Antynea/grub-btrfs Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: make Requires: btrfs-progs grub2-common bash gawk inotify-tools %description grub-btrfs improves GRUB by adding a btrfs snapshots sub-menu, allowing boot into snapshots. Supports snapper, timeshift, and yabsnap. %prep %setup -q sed -i 's|^#GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS="rd.live.overlay.overlayfs=1"|GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS="rd.live.overlay.overlayfs=1"|' config sed -i '/test "\$(shell id -u)" != 0/,/exit 1/d' Makefile %install %make_install PREFIX=%{_prefix} LIB_DIR=%{_libdir} SYSTEMD=true GRUB_UPDATE_EXCLUDE=true %files %license LICENSE %doc README.md %doc initramfs/readme.md %{_bindir}/grub-btrfsd %{_unitdir}/grub-btrfsd.service %config(noreplace) %{_sysconfdir}/default/grub-btrfs/config %{_sysconfdir}/grub.d/41_snapshots-btrfs %{_mandir}/man8/grub-btrfs.8* %{_mandir}/man8/grub-btrfsd.8*