nixos/systemd-boot-builder: make sure to print informational messages to stderr

Otherwise this gets printed to stdout when running things like
nixos-rebuild, while people rely on the toplevel store path being the only
output of such commands.
This commit is contained in:
r-vdp
2025-09-15 10:19:15 +02:00
parent 8fd2809843
commit c4753ff331

View File

@@ -362,7 +362,7 @@ def install_bootloader(args: argparse.Namespace) -> None:
available_version = available_match.group(1)
if installed_version < available_version:
print("updating systemd-boot from %s to %s" % (installed_version, available_version))
print("updating systemd-boot from %s to %s" % (installed_version, available_version), file=sys.stderr)
run(
[f"{SYSTEMD}/bin/bootctl", f"--esp-path={EFI_SYS_MOUNT_POINT}"]
+ bootctl_flags