From d6c1150195817427dffa57740d183a3286e2a0f4 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Tue, 15 Dec 2015 21:31:12 +0300 Subject: [PATCH] chrootenv: symlink su and sudo stuff --- pkgs/build-support/build-fhs-chrootenv/env.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/build-support/build-fhs-chrootenv/env.nix b/pkgs/build-support/build-fhs-chrootenv/env.nix index c00d3865afab..610f450cfebd 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