File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # # This script can be used by generate-zbm to keep two or more ESPs in sync
4+ # # after an EFI is built. Place the script in the directory defined by:
5+ # #
6+ # # Global.PostHooksDir
7+ # #
8+ # # Ensure the file is executable. Adjust the ESPS variable to include
9+ # # the correct disks / partitions for your BACKUP EFI partitions. Do NOT include
10+ # # the primary/master ESP. Your master EFI mountpoint will be read, and used
11+ # # as the base for copying files to your other partitions.
12+ # #
13+ # # Only files with `zfsbootmenu` in the name are copied to / deleted from
14+ # # the backup ESPs. It will not manage any other files for you.
15+ # #
16+ # # This hook relies on yq-go and rsync.
17+
18+
319cleanup () {
420 if [ -n " ${ESP_MNT} " ]; then
521 mountpoint -q " ${ESP_MNT} " && umount -R " ${ESP_MNT} "
You can’t perform that action at this time.
0 commit comments