Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.07 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.07 KB

zfsbootmenu-sb

This tool is inspired by sbupdate, and allows you to sign ZFSBootMenu using your own Secure Boot Keys.

Installation

As with sbupdate, you should be familiar with Secure Boot and keys, See:

After you have your keys, you can setup:

  • Install zfsbootmenu-sb and either sbsigntools or sbctl
  • Place your keys somewhere (use sbctl create-keys or put your keys in /etc/efi-keys for sbsigntools)
  • Add the SecureBoot configuration to /etc/zfsbootmenu/config.yaml
  • Add PostHooksDir: /etc/zfsbootmenu/generate-zbm.post.d under Global (script will not run otherwise)
  • Run sudo generate-zbm -d to check your config

Each ZBM will be signed, if using sbsigntools they'll have -signed appended to the file name. The backup ZBM file can also be signed, and this is enabled by default.

After the initial setup, each ZBM image will be automatically signed when generated.

Configuration

Edit the /etc/zfsbootmenu/config.yaml file, Add the SecureBoot key, and add a value for SigningMethod

It should look something like this:

  SignBackup: true
  DeleteUnsigned: true

A pair of optional settings are available:

  • DeleteUnsigned: Delete original files after signing (NOTE: this does nothing if using sbctl)
  • SignBackup: Sign the backup file ZBM creates.

Note: generate-zbm will only create a backup file if it can see a ZBM-generated image in the directory, it will not detect your signed image if you have DeleteUnsigned set.

Related resources