@@ -7,6 +7,7 @@ import subprocess
77import glob
88import tempfile
99import errno
10+import warnings
1011
1112def copy_if_not_exists(source, dest):
1213 if not os.path.exists(dest):
@@ -92,8 +93,11 @@ parser = argparse.ArgumentParser(description='Update NixOS-related systemd-boot
9293parser.add_argument('default_config', metavar='DEFAULT-CONFIG', help='The default NixOS config to boot')
9394args = parser.parse_args()
9495
95−# We deserve our own env var!
9696if os.getenv("NIXOS_INSTALL_GRUB") == "1":
97+ warnings.warn("NIXOS_INSTALL_GRUB env var deprecated, use NIXOS_INSTALL_BOOTLOADER", DeprecationWarning)
98+ os.environ["NIXOS_INSTALL_BOOTLOADER"] = "1"
99+
100+if os.getenv("NIXOS_INSTALL_BOOTLOADER") == "1":
97101 if "@canTouchEfiVariables@" == "1":
98102 subprocess.check_call(["@systemd@/bin/bootctl", "--path=@efiSysMountPoint@", "install"])
99103 else: