diff options
author | John Kehayias <john.kehayias@protonmail.com> | 2022-07-20 23:46:45 -0400 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-10-13 09:19:08 +0200 |
commit | c7ba5f38b80433b040d3946b8fc0b1e8621ba30a (patch) | |
tree | 44b431da8e97b51ea3402323895c8a9daf606b73 /tests/guix-build-branch.sh | |
parent | 3d1d29e440910a99531b738f8f090de2cd4df9da (diff) | |
download | guix-c7ba5f38b80433b040d3946b8fc0b1e8621ba30a.tar.gz guix-c7ba5f38b80433b040d3946b8fc0b1e8621ba30a.zip |
environment: Add '--emulate-fhs'.
* guix/scripts/environment.scm (show-environment-options-help, %options): Add
'--emulate-fhs'.
(setup-fhs): New procedure. Setup for the Filesystem Hierarchy Standard (FHS)
container. Defines and uses FHS-SYMLINKS and LINK-CONTENTS to create FHS
expected directories and creates /etc/ld.so.conf.
(launch-environment): Add 'emulate-fhs?' key and implement it to set $PATH and
generate /etc/ld.so.cache before calling COMMAND.
(launch-environment/container): Add 'emulate-fhs?' and 'setup-hook' keys and
implement them. Define and use FHS-MAPPINGS, to set up additional bind mounts
in the container to follow FHS expectations.
(guix-environment*): Add glibc-for-fhs to the container packages when
'emulate-fhs?' key is in OPTS.
* doc/guix.texi (Invoking guix shell): Document '--emulate-fhs'.
(Invoking guix environment): Document '--emulate-fhs'.
* tests/guix-environment-container.sh: Add tests for '--emulate-fhs'.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/guix-build-branch.sh')
0 files changed, 0 insertions, 0 deletions