aboutsummaryrefslogtreecommitdiff
path: root/custom/40_zfs_snapshots
blob: 52152891ef0300ddc53d98037a7f5694fc4be9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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