Bug 811537
Summary: | dracut passes on PWD and SHLVL env vars to systemd | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Lennart Poettering <lpoetter> |
Component: | dracut | Assignee: | dracut-maint |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | dracut-maint, jonathan |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-11 11:19:57 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
Lennart Poettering
2012-04-11 11:09:26 UTC
Hmm, so it seems that bash always implicitly exports "PWD", "SHLVL" and "_". See comments in: http://lists.busybox.net/pipermail/busybox-cvs/2009-September/029857.html Given that people might actually invoke us with an exec from an init=/bin/sh boot it probably makes sense for systemd to unconditionally unset these env vars. Also, this behaviour seems to apply to both bash and the busybox shell, hence it's generic enough to be something to unset in systemd. I guess that means that there's nothing to fix in dracut. Closing again. Sorry for the noise. |