b7124bbd6a | ||
---|---|---|
.. | ||
README.md | ||
esp-sync.sh | ||
keycache.sh | ||
luks-unlock.sh | ||
megaraid-teardown.sh | ||
remote-ssh-build.sh | ||
snapshot-teardown.sh | ||
syslinux-update.sh | ||
zbm-sign.pl |
README.md
User-Contributed Scripts for ZFSBootMenu
The contrib
directory contains an assorted collection of helper scripts that
augment core functionality. These scripts are reviewed and approved by members
of the core team, but not all are thoroughly tested. Some have not been tested
at all. User-contributed scripts are intended as starting points for customized
setup hooks that can be deployed within the
ZFSBootMenu environment or for generate-zbm
hooks that alter the process of creating
ZFSBootMenu images.
Script Directory
Brief descriptions of contributed scripts appear below for convenience. Please review the scripts themselves for more thorough descriptions of their use.
-
esp-sync.sh
- This script can run as a "post-image" hook togenerate-zbm
to synchronize the contents of one EFI system partition with others, providing tolerance against disk failures. -
keycache.sh
- This early-setup hook provided a simple means for run-time caching of ZFS encryption keys. Although the script has been retained for historical reference, use of theorg.zfsbootmenu:keysource
property is now the preferred method to control caching of filesystem credentials. -
luks-unlock.sh
- This is a proof of concept for storing ZFS native-encryption keys on a LUKS-encrypted volume. When installed as an early-setup hook, this facilitates, e.g., multiple-slot keys for ZFS pools that use native encryption. -
megaraid-teardown.sh
- Unbind drivers formegaraid_sas
devices, so that they're available after a kexec. This is patterned after the XHCI teardown script. -
remote-ssh-build.sh
- This is a standalone script intended to wrap thezbm-builder.sh
image-builder script, incorporating a dropbear SSH server, host keys and anauthorized_keys
file that permit remote access and pool unlocking within a ZFSBootMenu image. -
snapshot-teardown.sh
- This "teardown" hook will capture a pre-boot snapshot of the boot environment that has been selected for booting. -
syslinux-update.sh
- This script can run as a post-image hook forgenerate-zbm
to construct a configuration file for syslinux. This provides an extension to basic functionality that was originally built intogenerate-zbm
itself. -
zbm-sign.pl
- A Perl script, suitable for use as a generate-zbm post-run hook, that will sign ZFSBootMenu EFI images for use with Secure Boot.