mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
nixos-install: fail if we can't set up bootloader
(cherry picked from commit fa39e3d642
)
This commit is contained in:
parent
0eef95da74
commit
0a00d66fe6
@ -197,6 +197,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`.
|
||||
|
Loading…
Reference in New Issue
Block a user