summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2015-12-15 21:31:12 +0300
committerNikolay Amiantov <ab@fmap.me>2015-12-17 14:21:13 +0300
commitd6c1150195817427dffa57740d183a3286e2a0f4 (patch)
tree73e9bf300e08d3b317aa29657b355092ca018348 /pkgs
parent230898ceb2e85ae11dbead2430a829babe2ab452 (diff)
downloadnixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.tar
nixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.tar.gz
nixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.tar.bz2
nixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.tar.lz
nixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.tar.xz
nixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.tar.zst
nixpkgs-d6c1150195817427dffa57740d183a3286e2a0f4.zip
chrootenv: symlink su and sudo stuff
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/build-support/build-fhs-chrootenv/env.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/build-support/build-fhs-chrootenv/env.nix b/pkgs/build-support/build-fhs-chrootenv/env.nix
index c00d3865afa..610f450cfeb 100644
--- a/pkgs/build-support/build-fhs-chrootenv/env.nix
+++ b/pkgs/build-support/build-fhs-chrootenv/env.nix
@@ -81,6 +81,11 @@ let
       ln -s /host-etc/resolv.conf resolv.conf
       ln -s /host-etc/nsswitch.conf nsswitch.conf
 
+      # symlink sudo and su stuff
+      ln -s /host-etc/login.defs login.defs
+      ln -s /host-etc/sudoers sudoers
+      ln -s /host-etc/sudoers.d sudoers.d
+
       # symlink other core stuff
       ln -s /host-etc/localtime localtime
       ln -s /host-etc/machine-id machine-id