mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +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:
parent
b7088df010
commit
ad49db64da
1 changed files with 3 additions and 0 deletions
|
@ -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