Bug 1443124

Summary: MODULEPATH variable doesn't survive 'sudo' (and similar security wrappers)
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: environment-modulesAssignee: Orion Poplawski <orion>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: jsynacek, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-10 17:56: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 Pavel Raiskup 2017-04-18 14:02:15 UTC
It is really inconvenient to hear complaints like:

$ sudo bash -c '/usr/bin/modulecmd bash load existing-scl'
locate_module.c(245):ERROR:107: 'MODULEPATH' not set
ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'existing-scl'

So I would propose to not strictly *require* MODULEPATH variable, but have it as
an option (let's have a set of directories we load by default, even if
MODULEPATH is not set).

Comment 1 Jan Kurik 2017-08-15 07:57:42 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Comment 2 Pavel Raiskup 2017-11-10 17:56:57 UTC
Closing in favor of older bug-ID.

*** This bug has been marked as a duplicate of bug 1139165 ***