mirror of
https://github.com/rocky-linux/createhdds.git
synced 2024-12-22 18:18:32 +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",
|
"{0}/{1}.ks".format(SCRIPTDIR, self.name), "--location",
|
||||||
loctmp.format(fedoradir, str(self.release), variant, arch), "--name", "createhdds",
|
loctmp.format(fedoradir, str(self.release), variant, arch), "--name", "createhdds",
|
||||||
"--memory", memsize, "--noreboot", "--wait", "-1"]
|
"--memory", memsize, "--noreboot", "--wait", "-1"]
|
||||||
|
if logger.getEffectiveLevel() == logging.DEBUG:
|
||||||
|
# let's get virt-install debug logs too
|
||||||
|
args.append("--debug")
|
||||||
if self.bootopts:
|
if self.bootopts:
|
||||||
args.extend(("--boot", self.bootopts))
|
args.extend(("--boot", self.bootopts))
|
||||||
if textinst:
|
if textinst:
|
||||||
|
Loading…
Reference in New Issue
Block a user