From: "Ludovic Courtès" <ludo@gnu.org>
To: jman <srht@city17.xyz>
Cc: John Kehayias <john.kehayias@protonmail.com>, 60112@debbugs.gnu.org
Subject: [bug#60112] [PATCH] website: Add post about guix shell fhs option.
Date: Thu, 05 Jan 2023 22:00:39 +0100 [thread overview]
Message-ID: <87pmbs3de0.fsf_-_@gnu.org> (raw)
In-Reply-To: <87lemiyx4d.fsf@city17.xyz> (jman's message of "Wed, 04 Jan 2023 19:18:10 +0100")
Hi jman,
jman <srht@city17.xyz> skribis:
> Hello and sorry for getting into this comment thread.
>
> I have posted a few days ago a question about preserving env vars
> when creating a container with FHS emulation:
> https://lists.gnu.org/archive/html/help-guix/2023-01/msg00002.html
The ‘PATH’ environment variable, and only this one, is overridden
unconditionally when using ‘--emulate-fhs’; quoth ‘environment.scm’:
(when emulate-fhs?
;; When running in a container with EMULATE-FHS?, override $PATH
;; (optional, but to better match FHS expectations), and generate
;; /etc/ld.so.cache.
(setenv "PATH" "/bin:/usr/bin:/sbin:/usr/sbin")
(invoke "ldconfig" "-X"))
Other variables are preserved, as in this example:
--8<---------------cut here---------------start------------->8---
$ FOO=bar guix shell -CF -E ^FOO coreutils -- env | grep FOO
FOO=bar
--8<---------------cut here---------------end--------------->8---
HTH!
Ludo’.
next prev parent reply other threads:[~2023-01-05 21:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 23:39 Drafting a Guix blog post on the FHS container Jim Newsome
2022-12-19 21:28 ` Ludovic Courtès
2022-12-23 2:04 ` Csepp
2022-12-26 5:36 ` John Kehayias
2023-01-04 17:47 ` John Kehayias
2023-01-04 18:07 ` Jim Newsome
2023-01-04 18:16 ` John Kehayias
2023-01-04 18:18 ` [bug#60112] " jman via Guix-patches via
2023-01-05 21:00 ` Ludovic Courtès [this message]
2023-01-05 21:03 ` [bug#60112] [PATCH] website: Add post about guix shell fhs option John Kehayias via Guix-patches via
-- strict thread matches above, loose matches on Subject: below --
2022-12-16 7:27 John Kehayias via Guix-patches via
2022-12-25 23:58 ` Ludovic Courtès
2023-01-03 22:54 ` Ludovic Courtès
2023-01-03 23:07 ` John Kehayias via Guix-patches via
2023-01-04 10:31 ` Ludovic Courtès
2023-01-04 17:43 ` [bug#60112] [PATCH v2] " John Kehayias via Guix-patches via
2023-01-04 18:23 ` [bug#60112] [PATCH v3] " John Kehayias via Guix-patches via
2023-01-06 12:49 ` [bug#60112] [PATCH] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmbs3de0.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=60112@debbugs.gnu.org \
--cc=john.kehayias@protonmail.com \
--cc=srht@city17.xyz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.