diff --git a/pungi/phases/buildinstall.py b/pungi/phases/buildinstall.py index fb0faf60..41472e92 100644 --- a/pungi/phases/buildinstall.py +++ b/pungi/phases/buildinstall.py @@ -130,6 +130,7 @@ class BuildinstallPhase(PhaseBase): if buildinstall_method == "lorax": for variant in self.compose.get_variants(arch=arch, types=['variant']): + volid = get_volid(self.compose, arch, variant=variant, disc_type="boot") commands.append( self._get_lorax_cmd(repo_baseurl, output_dir, variant, arch, buildarch, volid) ) diff --git a/pungi/util.py b/pungi/util.py index 5bfd02fa..facecd20 100644 --- a/pungi/util.py +++ b/pungi/util.py @@ -347,9 +347,9 @@ def get_volid(compose, arch, variant=None, escape_spaces=False, disc_type=False) # iso = IsoWrapper(logger=compose._logger) # volid = iso._truncate_volid(volid) - if len(volid) > 32: + if volid and len(volid) > 32: raise ValueError("Could not create volume ID <= 32 characters") - if escape_spaces: + if volid and escape_spaces: volid = volid.replace(" ", r"\x20") return volid