Bug 1879216
Summary: | systemd --user strips bash functions; environment modules no longer work | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ian Collier <imc> |
Component: | systemd | Assignee: | systemd-maint |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 32 | CC: | fedoraproject, filbranden, flepied, lnykryn, msekleta, ssahani, s, systemd-maint, yuwatana, zbyszek, z |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | systemd-247~rc2-1.fc34 systemd-246.7-2.fc33 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-12-10 01:15:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ian Collier
2020-09-15 16:43:42 UTC
Fixed in rawhide so far. FEDORA-2020-3616681a70 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-3616681a70 FEDORA-2020-3616681a70 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-3616681a70` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-3616681a70 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-3616681a70 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. So... actually this was not resolved as requested: we again do not allow bash functions to
propagated using the manager environment block. The biggest problem is that people
want 'systemctl show-environment' to be useful for various shells, and various shells
are confused when there are non-standard things there. So after initially allowing that,
support was removed again.
It also seems that the manager environment block is not the right place for this: functions
specific to some shell should be imported into that shell (using .bash_profile or whatever)
and not propagated to unrelated programs and shells.
> So the question is: should systemd allow environment variables ending with '%%'
> to be exported, or is it enough to require users to source /etc/bashrc in
> their ~/.bashrc and tell them it's their own fault if they don't? (Why doesn't
> bash do this itself if it's required?)
I think the latter.
|