Skip to content

Commit

Permalink
security: add a development note for certificates import in initramfs
Browse files Browse the repository at this point in the history
Related: RHEL-77155
  • Loading branch information
rvykydal committed Feb 6, 2025
1 parent fa6127c commit 794763c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dracut/parse-kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ def _dump_certificate(cert, root="/", dump_dir=None):

def process_certificates(handler):
"""Import certificates defined in %certificate sections."""
# NOTE: parse-kickstart can be run multiple times so either the processing
# needs to be idempotent (like dumping the files), or guarded to happen
# only once, or the certificates dumped during parsing should be imported
# once in a initqueue hook.
for cert in handler.certificates:
log.info("Processing kickstart certificate %s", cert.filename)

Expand Down

0 comments on commit 794763c

Please sign in to comment.