From be2c9333fceab3435ef8223148f0641eeb472f43 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 23 Jun 2020 11:54:05 -0700 Subject: [PATCH] Add log entry about dracut and /proc --- src/pylorax/creator.py | 2 +- src/pylorax/treebuilder.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pylorax/creator.py b/src/pylorax/creator.py index ae18cb2a..559912ed 100644 --- a/src/pylorax/creator.py +++ b/src/pylorax/creator.py @@ -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) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 2e88a3f5..42c598d6 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -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):