stages/dracut: disable hostonly mode and default to reproducible images

Disable host-only mode when running dracut and generate reproducible
images by default.

Suggested-by: gicmo
Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2021-06-03 12:27:09 +02:00 committed by Christian Kellner
parent 8d43a78918
commit 1c3aadba20

View file

@ -144,7 +144,7 @@ def main(tree, options):
include = options.get("include", [])
install = options.get("install", [])
early_microcode = options.get("early_microcode", False)
reproducible = options.get("reproducible")
reproducible = options.get("reproducible", True)
extra = options.get("extra", [])
# initrds may have already been created, force the recreation
@ -195,6 +195,7 @@ def main(tree, options):
subprocess.run(["/usr/sbin/chroot", tree,
"/usr/bin/dracut",
"--no-hostonly",
"--kver", kver]
+ opts,
check=True)