Don't allow creation of i686 images for Fedora 31+

This just isn't possible any more, we no longer produce all
the necessary bits to generate images for i686.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2019-10-29 14:31:27 -07:00
parent 74c28b5557
commit 8e6136ee20

View File

@ -226,6 +226,11 @@ class VirtInstallImage(object):
"intend to have %s workers you will need to run createhdds again on one " "intend to have %s workers you will need to run createhdds again on one "
"of them to create their base images", self.arch, CPUARCH, self.arch) "of them to create their base images", self.arch, CPUARCH, self.arch)
return return
if self.arch in ('i386', 'i686'):
if str(self.release).lower() == 'rawhide' or int(self.release) > 30:
# we just don't support this any more, since F31
logger.warning("Cannot create i686 images for releases after Fedora 30!")
return
# figure out the best os-variant. NOTE: libosinfo >= 0.3.1 # figure out the best os-variant. NOTE: libosinfo >= 0.3.1
# properly returns 1 on failure, but using workaround for old # properly returns 1 on failure, but using workaround for old