Bug 66698 - systemd.setenv appears not to do its job in Fedora 19 Live
Summary: systemd.setenv appears not to do its job in Fedora 19 Live
Status: RESOLVED NOTOURBUG
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-08 14:02 UTC by probono
Modified: 2013-09-17 14:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description probono 2013-07-08 14:02:16 UTC
I am running a Fedora 19 Live system and I am trying to use systemd.setenv to set an environment variable that I would hope is passed all the way through to the user logged into Live system.

[liveuser@localhost ~]$ cat /etc/redhat-release 
Fedora release 19 (Schrödinger’s Cat)

[liveuser@localhost ~]$ cat /proc/cmdline 
... systemd.setenv=FOO=BAR ...

[liveuser@localhost ~]$ env | grep FOO

--> Nothing - I would have expected FOO=bar
Comment 1 Lennart Poettering 2013-09-12 17:39:52 UTC
what does "systemctl show-environment" print?

Note that login session start with a reset environment block. systemd.setenv= hence only has an effect on system services.
Comment 2 probono 2013-09-14 09:25:26 UTC
Then it is not what I am looking for. I was hoping to be able to
override GNOME defaults, e.g., the keyboard and language, on stock
Fedora Live CDs. Is there another suggested way to do this?
Comment 3 probono 2013-09-14 09:29:35 UTC
[liveuser@localhost ~]$ env | grep FOO
[liveuser@localhost ~]$ systemctl show-environment | grep FOO
FOO=BAR
Comment 4 Lennart Poettering 2013-09-17 14:49:41 UTC
There's no way I was aware of I fear that would infleunce GNOME's kbd selection...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.