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

This commit is contained in:
K900 2024-09-09 16:21:54 +03:00 committed by GitHub
commit cb1b8436a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`.