]> git.ipfire.org Git - thirdparty/dracut.git/commit
feat(dracut): add --sbat option to add sbat policy to UKI
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Wed, 12 Jul 2023 07:50:47 +0000 (03:50 -0400)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Sat, 5 Aug 2023 16:35:59 +0000 (12:35 -0400)
commitfffeadedf2170563cb7c0e0cb06994b0878ed455
tree8fe5abce770e3d24afe67fd273dfeb2eced16b3f
parentaf3076a1cb527cd7800b9aaeb368c91de1362c75
feat(dracut): add --sbat option to add sbat policy to UKI

Take existing .sbat section from the uefi stub and merge it
with vmlinux .sbat (if it exists) and user-provided .sbat parameters
using the new --sbat option.

For some reasons, --update-section in objcopy does not resize the
.sbat section, so remove the section from the stub and add it
to the UKI as new one, to avoid having incomplete SBAT strings.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
dracut.sh
man/dracut.8.asc
man/dracut.conf.5.asc
shell-completion/bash/dracut