nixos/nixos-enter: Add IN_NIXOS_ENTER variable

main
Janne Heß 3 years ago
parent be5d1c3ca2
commit b071aea8d0
No known key found for this signature in database
GPG Key ID: 69165158F05265DF
  1. 2
      nixos/modules/installer/tools/nixos-enter.sh

@ -68,7 +68,7 @@ mount --rbind /sys "$mountPoint/sys"
fi
# Run the activation script. Set $LOCALE_ARCHIVE to supress some Perl locale warnings.
LOCALE_ARCHIVE="$system/sw/lib/locale/locale-archive" chroot "$mountPoint" "$system/activate" 1>&2 || true
LOCALE_ARCHIVE="$system/sw/lib/locale/locale-archive" IN_NIXOS_ENTER=1 chroot "$mountPoint" "$system/activate" 1>&2 || true
# Create /tmp
chroot "$mountPoint" systemd-tmpfiles --create --remove --exclude-prefix=/dev 1>&2 || true

Loading…
Cancel
Save