mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
systemd-boot: improve error message if no previous systemd boot is fo… (#409073)
This commit is contained in:
commit
190ee55caa
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue