Merge pull request #181882 from SuperSandro2000/systemd-boot

nixos/systemd-boot: remove default log message if nothing changes
This commit is contained in:
Janne Heß 2022-07-18 10:02:43 +02:00 committed by GitHub
commit 4e0f8f7f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")