debian: binary target is x86 only

Other architectures run will be aborted with proper message.

Change-Id: Ic81fb425fa54953f1d6c12063049d60658deb4ed
This commit is contained in:
Marcin Juszkiewicz 2020-04-30 11:11:20 +02:00
parent 8abfa0cc75
commit fe6fd8dc5d
1 changed files with 6 additions and 0 deletions

View File

@ -778,6 +778,12 @@ class KollaWorker(object):
'Unknown install type'
)
if (self.install_type == 'binary' and self.base == 'debian' and
self.base_arch != 'x86_64'):
LOG.info("Debian/binary target is available only for x86-64 "
"due to lack of packages for other architectures.")
sys.exit(1)
self.image_prefix = self.base + '-' + self.install_type + '-'
self.regex = conf.regex