elx-pba

module
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0

README

elx-pba

GitHub commit checks state Go Report Card License

Pre-boot authentication image for TCG Storage devices

Building

NOTE: Use a Go version of 1.17 or higher.

$ sudo apt install \
    gnupg2 gpgv2 flex bison build-essential libelf-dev \
    curl libssl-dev bc zstd dosfstools fdisk gdisk mtools
$ gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org autosigner@kernel.org

# Make sure sgdisk is in the PATH
$ PATH=$PATH:/sbin make

Alternatively, use the containerized build tools:

$ docker build \
	-t elastx.se/elx-pba-builder:latest \
	-f builder.dockerfile .
$ docker run \
	--rm --volume ${PWD}:/src \
	elastx.se/elx-pba-builder:latest

Testing in a VM

$ sudo apt install qemu-system-x86
$ make qemu-x86_64

Testing on a real disk

$ OPAL_KEY=debug
$ sudo sedutil-cli --loadpbaimage "${OPAL_KEY}" elx-pba-x86_64.img /dev/sdb

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL