Skip to content

Commit fa39e3d

Browse files
committed
nixos-install: fail if we can't set up bootloader
1 parent 00c3eae commit fa39e3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nixos/modules/installer/tools/nixos-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ if [[ -z $noBootLoader ]]; then
245245
ln -sfn /proc/mounts "$mountPoint"/etc/mtab
246246
export mountPoint
247247
NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root "$mountPoint" -c "$(cat <<'EOF'
248+
set -e
248249
# Create a bind mount for each of the mount points inside the target file
249250
# system. This preserves the validity of their absolute paths after changing
250251
# the root with `nixos-enter`.

0 commit comments

Comments
 (0)