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