Skip to content

Commit

Permalink
sbctl: fixup docs and some comments
Browse files Browse the repository at this point in the history
The man page still had some /usr/share mentions

Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Aug 5, 2024
1 parent d5bbe94 commit 147d522
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 3 additions & 7 deletions docs/sbctl.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ EFI signing commands

*-e*, *--export*;;
The directory to persist the exported keys.
+
Default: "/usr/share/secureboot/keys/"

*-d*, *--database-path*;;
Path to save the GUID file when generating keys.
+
Default: "/usr/share/secureboot/"

**enroll-keys**::
Enrolls the created key into the EFI variables.
Expand All @@ -65,8 +61,8 @@ EFI signing commands
This feature is experimental

*-c*, *--custom*;;
Enroll custom KEK and db certificates from "/usr/share/secureboot/keys/custom/KEK/",
"/usr/share/secureboot/keys/custom/db/",
Enroll custom KEK and db certificates from "/var/lib/sbctl/keys/custom/KEK/",
"/var/lib/sbctl/keys/custom/db/",
respectively.

*-f*, *--firmware-builtin*;;
Expand Down Expand Up @@ -449,7 +445,7 @@ not be enabled unless no other way to enter key management is provided.
If this step is not completed, enrolling custom keys will be rejected by the firmware.

Next is creating the keys for secure boot. 'create-keys' creates the key
hierarchy needed for secure boot into "/usr/share/secureboot".
hierarchy needed for secure boot into "/var/lib/sbctl/keys".

# sbctl create-keys
Created Owner UUID a9fbbdb7-a05f-48d5-b63a-08c5df45ee70
Expand Down
5 changes: 2 additions & 3 deletions sbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ import (
"github.com/spf13/afero"
)

// TODO: Remove this at some point
// Only here for legacy reasons to denote the old path

var (
// TODO: Remove this at some point
// Only here for legacy reasons to denote the old path
DatabasePath = "/usr/share/secureboot/"
Version = "unknown"
)
Expand Down

0 comments on commit 147d522

Please sign in to comment.