From fa39e3d642f03b8434387a47eb9d29042f71a2af Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 8 Sep 2024 11:05:32 +0300 Subject: [PATCH] nixos-install: fail if we can't set up bootloader --- nixos/modules/installer/tools/nixos-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh index a76b4ffb4444..6098aac7d378 100755 --- a/nixos/modules/installer/tools/nixos-install.sh +++ b/nixos/modules/installer/tools/nixos-install.sh @@ -245,6 +245,7 @@ if [[ -z $noBootLoader ]]; then ln -sfn /proc/mounts "$mountPoint"/etc/mtab export mountPoint NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root "$mountPoint" -c "$(cat <<'EOF' + set -e # Create a bind mount for each of the mount points inside the target file # system. This preserves the validity of their absolute paths after changing # the root with `nixos-enter`.