From 6505511f2e6b43a37570fc840f6d2851c7cc170c Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 18 Jan 2026 10:55:18 -0600 Subject: Add grub-zfs-snap for ZFS snapshot boot entries Add ability to boot into ZFS snapshots directly from GRUB menu: - grub-zfs-snap: generates GRUB submenu entries for recent snapshots - 40_zfs_snapshots: GRUB generator script installed to /etc/grub.d/ - zz-grub-zfs-snap.hook: pacman hook for automatic GRUB regeneration The GRUB menu automatically updates after kernel/ZFS package changes. Up to 10 most recent snapshots appear in a "ZFS Snapshots" submenu. --- custom/40_zfs_snapshots | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 custom/40_zfs_snapshots (limited to 'custom/40_zfs_snapshots') diff --git a/custom/40_zfs_snapshots b/custom/40_zfs_snapshots new file mode 100644 index 0000000..5215289 --- /dev/null +++ b/custom/40_zfs_snapshots @@ -0,0 +1,13 @@ +#!/bin/bash +# /etc/grub.d/40_zfs_snapshots +# GRUB configuration generator for ZFS snapshot boot entries +# +# This script is called by grub-mkconfig to generate menu entries +# for booting into ZFS snapshots. + +set -e + +# Only run if grub-zfs-snap is installed +if [[ -x /usr/local/bin/grub-zfs-snap ]]; then + /usr/local/bin/grub-zfs-snap --generate +fi -- cgit v1.2.3