diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart index 4411ce26e08..75d5073eb83 100755 --- a/dracut/parse-kickstart +++ b/dracut/parse-kickstart @@ -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)