From deffaeea86e3844817b9f21f36d2d587b7a61cdd 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#2028104 --- src/sbin/mkksiso | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sbin/mkksiso b/src/sbin/mkksiso index 4fed985b..85497ac2 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")):