diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2015-10-21 21:34:12 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2015-10-21 21:44:29 +0200 |
commit | ad49db64da904bf408a9f5b54764c8649f54629a (patch) | |
tree | 3ffa792599ed92f416d1ab4ed68454c3599bafec /pkgs/build-support/build-fhs-chrootenv | |
parent | b7088df0100b8ce7b116bf907bcc48acd66c1fa6 (diff) | |
download | nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.tar nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.tar.gz nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.tar.bz2 nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.tar.lz nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.tar.xz nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.tar.zst nixlib-ad49db64da904bf408a9f5b54764c8649f54629a.zip |
build-fhs-chrootenv: add /etc/mtab -> /proc/mounts symlink
Needed to be able to run some programs (e.g. tune2fs) in the chroot. AFAIK, /etc/mtab is deprecated, but programs still use it.
Diffstat (limited to 'pkgs/build-support/build-fhs-chrootenv')
-rw-r--r-- | pkgs/build-support/build-fhs-chrootenv/env.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/build-fhs-chrootenv/env.nix b/pkgs/build-support/build-fhs-chrootenv/env.nix index a245778bf386..4c307a77d126 100644 --- a/pkgs/build-support/build-fhs-chrootenv/env.nix +++ b/pkgs/build-support/build-fhs-chrootenv/env.nix @@ -98,6 +98,9 @@ let # symlink SSL certs mkdir -p ssl ln -s /host-etc/ssl/certs ssl/certs + + # symlink /etc/mtab -> /proc/mounts (compat for old userspace progs) + ln -s /proc/mounts mtab ''; }; |