diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2018-04-23 21:42:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-23 21:42:12 +0000 |
commit | 6048470df168fd146b4c7b96c6254fd9646611e5 (patch) | |
tree | a4971a5cd93de8649e62c75e088dd82f06cc6828 /nixos | |
parent | d32983a1caa92c74e8240c9a355ce9f1df8f5f42 (diff) | |
parent | 14cab1ac57b44decdbf12a854f9cddd02af54004 (diff) | |
download | nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.tar nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.tar.gz nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.tar.bz2 nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.tar.lz nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.tar.xz nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.tar.zst nixpkgs-6048470df168fd146b4c7b96c6254fd9646611e5.zip |
Merge pull request #39342 from samueldr/fix/nixos-enter-efivarfs
nixos-enter: Ensures presence of full /sys tree. (for efivarfs)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/tools/nixos-enter.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-enter.sh b/nixos/modules/installer/tools/nixos-enter.sh index 67939118961..518dbbbf21e 100644 --- a/nixos/modules/installer/tools/nixos-enter.sh +++ b/nixos/modules/installer/tools/nixos-enter.sh @@ -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 |