Skip to content

Commit

Permalink
Merge pull request #39342 from samueldr/fix/nixos-enter-efivarfs
Browse files Browse the repository at this point in the history
nixos-enter: Ensures presence of full /sys tree. (for efivarfs)
(cherry picked from commit 6048470)
  • Loading branch information
7c6f434c committed Apr 23, 2018
1 parent 20e349a commit e932b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/installer/tools/nixos-enter.sh
Expand Up @@ -51,8 +51,9 @@ if [[ ! -e $mountPoint/etc/NIXOS ]]; then
exit 126
fi

mkdir -m 0755 -p "$mountPoint/dev"
mkdir -m 0755 -p "$mountPoint/dev" "$mountPoint/sys"
mount --rbind /dev "$mountPoint/dev"
mount --rbind /sys "$mountPoint/sys"

# 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" >&2 || true
Expand Down

0 comments on commit e932b5b

Please sign in to comment.