about summary refs log tree commit diff
path: root/nixos/modules/installer/tools/nixos-rebuild.sh
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-08-16 07:51:58 -0400
committerShea Levy <shea@shealevy.com>2016-08-16 07:51:58 -0400
commitb4954a8f3802ba545933905428a4288622f28294 (patch)
treee58ea149d7ecf20cbcc9cdcb6bbe6f0a9bd2c428 /nixos/modules/installer/tools/nixos-rebuild.sh
parent38f306f492e21140d2888c9b6de20d4a5c925387 (diff)
downloadnixlib-b4954a8f3802ba545933905428a4288622f28294.tar
nixlib-b4954a8f3802ba545933905428a4288622f28294.tar.gz
nixlib-b4954a8f3802ba545933905428a4288622f28294.tar.bz2
nixlib-b4954a8f3802ba545933905428a4288622f28294.tar.lz
nixlib-b4954a8f3802ba545933905428a4288622f28294.tar.xz
nixlib-b4954a8f3802ba545933905428a4288622f28294.tar.zst
nixlib-b4954a8f3802ba545933905428a4288622f28294.zip
Deprecate --install-grub in favor of --install-bootloader for nixos-rebuild.
Fixes #14293
Diffstat (limited to 'nixos/modules/installer/tools/nixos-rebuild.sh')
-rw-r--r--nixos/modules/installer/tools/nixos-rebuild.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh
index e26a9f6cf635..803989789838 100644
--- a/nixos/modules/installer/tools/nixos-rebuild.sh
+++ b/nixos/modules/installer/tools/nixos-rebuild.sh
@@ -33,7 +33,11 @@ while [ "$#" -gt 0 ]; do
         action="$i"
         ;;
       --install-grub)
-        export NIXOS_INSTALL_GRUB=1
+        echo "$0: --install-grub deprecated, use --install-bootloader instead" >&2
+        export NIXOS_INSTALL_BOOTLOADER=1
+        ;;
+      --install-bootloader)
+        export NIXOS_INSTALL_BOOTLOADER=1
         ;;
       --no-build-nix)
         buildNix=