From c4753ff331da6cd2a3a979290e2a53ec154a1961 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Mon, 15 Sep 2025 10:19:15 +0200 Subject: [PATCH] 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. --- .../system/boot/loader/systemd-boot/systemd-boot-builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py index 9f36dff3cc67..e1f2b2a32a6c 100644 --- a/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py +++ b/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py @@ -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