diff options
Diffstat (limited to 'custom/40_zfs_snapshots')
| -rw-r--r-- | custom/40_zfs_snapshots | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
