···335335 available_match = re.search(r"^\((.*)\)$", available_out)
336336337337 if installed_match is None:
338338- raise Exception("could not find any previously installed systemd-boot")
338338+ 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`")
339339340340 if available_match is None:
341341 raise Exception("could not determine systemd-boot version")