diff --git a/tools/osbuild-image-info b/tools/osbuild-image-info index c7bafea6..a4cef88b 100755 --- a/tools/osbuild-image-info +++ b/tools/osbuild-image-info @@ -2630,6 +2630,9 @@ def append_partitions(report, image): if os.path.exists(f"{tree}/etc/fstab"): fstab.extend(read_fstab(tree)) break + else: + raise RuntimeError("no fstab file found") + # sort the fstab entries by the mountpoint fstab = sorted(fstab, key=operator.itemgetter(1))