From cc5cb1ef27f909c38d984389d14a085dcfa6afad Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 7 Dec 2021 10:52:02 -0800 Subject: [PATCH] mkksiso: Raise error if no volume id is found It is possible the source iso doesn't have an id, or there is an errorr reading it. Raise an error when this happens to make it more clear what the problem is. Related: rhbz#2028048 --- src/sbin/mkksiso | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbin/mkksiso b/src/sbin/mkksiso index a20d1516..272550e2 100755 --- a/src/sbin/mkksiso +++ b/src/sbin/mkksiso @@ -396,6 +396,8 @@ class MakeKickstartISO(): try: self.iso = IsoMountpoint(self.input_iso) self.label = self.iso.label if volid is None else volid + if not self.label: + raise RuntimeError("No volume id found, cannot create iso.") log.info("Volume Id = %s", self.label) if os.path.exists(os.path.join(self.iso.mount_dir, "images/efiboot.img")):