Unverified Commit cb1b8436 authored by K900's avatar K900 Committed by GitHub
Browse files

nixos-install: fail if we can't set up bootloader (#340522)

parents d09f96c1 fa39e3d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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`.