mirror of
https://github.com/rocky-linux/createhdds.git
synced 2024-11-17 18:51:25 +00:00
Enable virt-install debug logging when we are at debug log level
Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
289371a581
commit
e03456491b
@ -298,6 +298,9 @@ class VirtInstallImage(object):
|
||||
"{0}/{1}.ks".format(SCRIPTDIR, self.name), "--location",
|
||||
loctmp.format(fedoradir, str(self.release), variant, arch), "--name", "createhdds",
|
||||
"--memory", memsize, "--noreboot", "--wait", "-1"]
|
||||
if logger.getEffectiveLevel() == logging.DEBUG:
|
||||
# let's get virt-install debug logs too
|
||||
args.append("--debug")
|
||||
if self.bootopts:
|
||||
args.extend(("--boot", self.bootopts))
|
||||
if textinst:
|
||||
|
Loading…
Reference in New Issue
Block a user