Add log entry about dracut and /proc

This commit is contained in:
Brian C. Lane 2020-06-23 11:54:05 -07:00
parent 68c26bf87b
commit be2c9333fc
2 changed files with 3 additions and 1 deletions

View File

@ -282,9 +282,9 @@ def rebuild_initrds_for_live(opts, sys_root_dir, results_dir):
# Construct an initrd from the kernel name
outfile = os.path.basename(kernel.path.replace("vmlinuz-", "initrd-") + ".img")
log.info("rebuilding %s", outfile)
log.info("dracut warnings about /proc are safe to ignore")
kver = kernel.version
cmd = dracut + ["/results/"+outfile, kver]
runcmd(cmd, root=sys_root_dir)

View File

@ -319,6 +319,8 @@ class TreeBuilder(object):
# Construct an initrd from the kernel name
outfile = kernel.path.replace("vmlinuz-", "initrd-") + ".img"
logger.info("rebuilding %s", outfile)
logger.info("dracut warnings about /proc are safe to ignore")
if backup:
initrd = joinpaths(self.vars.inroot, outfile)
if os.path.exists(initrd):