From ad49db64da904bf408a9f5b54764c8649f54629a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 21 Oct 2015 21:34:12 +0200 Subject: [PATCH] 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. --- pkgs/build-support/build-fhs-chrootenv/env.nix | 3 +++ 1 file changed, 3 insertions(+) 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 ''; };