From 8e6136ee200fc8ede0e07ae333fd4bb098c2dac3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 29 Oct 2019 14:31:27 -0700 Subject: [PATCH] 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 --- createhdds.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/createhdds.py b/createhdds.py index 18260e3..fffc789 100755 --- a/createhdds.py +++ b/createhdds.py @@ -226,6 +226,11 @@ class VirtInstallImage(object): "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) 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 # properly returns 1 on failure, but using workaround for old