1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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.
This commit is contained in:
Bjørn Forsman 2015-10-21 21:34:12 +02:00
parent b7088df010
commit ad49db64da

View file

@ -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
'';
};