Skip to content

Commit

Permalink
Merge pull request #6097 from rvykydal/certificates-do-not-crash-pars…
Browse files Browse the repository at this point in the history
…ing-on-readonly-fs

certificate: do not crash initramfs ks parsing on read-only filesystem
  • Loading branch information
rvykydal authored Jan 20, 2025
2 parents 862f8d4 + 058749e commit 71597aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dracut/parse-kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,11 @@ def process_certificates(handler):
log.error("Missing certificate file name, skipping.")
continue

_dump_certificate(cert)
try:
_dump_certificate(cert)
except OSError as e:
log.error("Dump of certificate %s failed: %s", cert.filename, e)
continue
# Dump for transport to switchroot
_dump_certificate(cert, root=CERT_TRANSPORT_DIR+"/path/")

Expand Down

0 comments on commit 71597aa

Please sign in to comment.