forked from mirrors/nixpkgs
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:
parent
b7088df010
commit
ad49db64da
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue