distro/rhel9: clarify partition table error message

The previous error didn't make it clear where the issue was coming from.
Now it explains that the problem is that a partition table for a given
architecture isn't specified on the image type.

Co-Authored-By: Christian Kellner <christian@kellner.me>
This commit is contained in:
Achilleas Koutsou 2022-12-14 17:17:24 +01:00 committed by Christian Kellner
parent ee7429880f
commit 617ec35c57

View file

@ -152,7 +152,7 @@ func (t *imageType) getPartitionTable(
basePartitionTable, exists := t.basePartitionTables[archName]
if !exists {
return nil, fmt.Errorf("unknown arch: " + archName)
return nil, fmt.Errorf("no partition table defined for architecture %q for image type %q", archName, t.Name())
}
imageSize := t.Size(options.Size)