systemd-boot: improve error message if no previous systemd boot is fo… (#409073)

authored by Paul Haerle and committed by GitHub 190ee55c 0a952f95

+1 -1
+1 -1
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
··· 335 335 available_match = re.search(r"^\((.*)\)$", available_out) 336 336 337 337 if installed_match is None: 338 - raise Exception("could not find any previously installed systemd-boot") 338 + 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`") 339 339 340 340 if available_match is None: 341 341 raise Exception("could not determine systemd-boot version")