It's possible to end up in a situation where the root is "None Linux None for None" which just looks silly. This happens in my testing if you kill an install after it's made partitions, but before fedora-release gets installed. --- pyanaconda/storage/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py index 8df216e..f02230f 100644 --- a/pyanaconda/storage/__init__.py +++ b/pyanaconda/storage/__init__.py @@ -3043,9 +3043,15 @@ def findExistingInstallations(devicetree): try: (arch, product, version) = getReleaseString() except ValueError: - name = "Linux on %s" % device.name + name = _("Linux on %s") % device.name else: - name = "%s Linux %s for %s" % (product, version, arch) + # I'd like to make this finer grained, but it'd be very difficult + # to translate. + if not product or not version or not arch: + name = _("Unknown Linux") + else: + name = _("%(product)s Linux %(version)s for %(arch)s") % \ + {"product": product, "version": version, "arch": arch}
(mounts, swaps) = parseFSTab(devicetree, chroot=ROOT_PATH) device.teardown()