Skip to content

Commit 64936f3

Browse files
committed
Add minimal documentation to ESP sync hook
1 parent 141e572 commit 64936f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

contrib/esp-sync.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
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+
319
cleanup() {
420
if [ -n "${ESP_MNT}" ]; then
521
mountpoint -q "${ESP_MNT}" && umount -R "${ESP_MNT}"

0 commit comments

Comments
 (0)