Commit b6c16639 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

systemd-boot: improve error message if no previous systemd boot is found.

parent 8db79028
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ def install_bootloader(args: argparse.Namespace) -> None:
        available_match = re.search(r"^\((.*)\)$", available_out)

        if installed_match is None:
            raise Exception("could not find any previously installed systemd-boot")
            raise Exception("Could not find any previously installed systemd-boot. If you are switching to systemd-boot from a different bootloader, you need to run `nixos-rebuild switch --install-bootloader`")

        if available_match is None:
            raise Exception("could not determine systemd-boot version")