nixos/systemd-boot: remove default log message if nothing changes

This commit is contained in:
Sandro Jäckel 2022-07-17 21:46:16 +02:00
parent c490f57e18
commit 4396fd615c
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -264,8 +264,6 @@ def main() -> None:
if installed_version < available_version:
print("updating systemd-boot from %s to %s" % (installed_version, available_version))
subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "update"])
else:
print("leaving systemd-boot %s in place (%s is not newer)" % (installed_version, available_version))
mkdir_p("@efiSysMountPoint@/efi/nixos")
mkdir_p("@efiSysMountPoint@/loader/entries")