From bcc1f265e3fa2eac032a33b8c5f043f6ef8a97c8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 7 Apr 2017 20:14:33 -0700 Subject: [PATCH] Workaround RHBZ #1439388 for F26 (with an updates.img) This bug is causing havoc with image creation on openqa01, so use an updates.img for F26 image builds until it's fixed. Signed-off-by: Adam Williamson --- createhdds.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/createhdds.py b/createhdds.py index e5b7070..d842e8f 100755 --- a/createhdds.py +++ b/createhdds.py @@ -244,9 +244,12 @@ class VirtInstallImage(object): arch = self.arch if arch == 'i686': arch = 'i386' + xargs = "inst.ks=file:/{0}.ks".format(self.name) + if self.release == 26: + # workaround RHBZ #1439388: remove when fixed in F26 + xargs += " inst.updates=https://www.happyassassin.net/updates/1439388.img" args = ["virt-install", "--disk", "size={0},path={1}".format(self.size, tmpfile), - "--os-variant", shortid, "-x", - "inst.ks=file:/{0}.ks".format(self.name), "--initrd-inject", + "--os-variant", shortid, "-x", xargs, "--initrd-inject", "{0}/{1}.ks".format(SCRIPTDIR, self.name), "--location", loctmp.format(str(self.release), self.variant, arch), "--name", "createhdds", "--memory", "2048", "--noreboot", "--wait", "-1"]