mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Fix PATH env for boot environment
Ticket: CM-2602 Reviewed By: trivial Testing Done: Tested with pre-up script during boot
This commit is contained in:
@ -11,6 +11,7 @@ import logging
|
||||
|
||||
lockfile="/run/network/.lock"
|
||||
logger = None
|
||||
ENVPATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
def run_up(args):
|
||||
logger.debug('args = %s' %str(args))
|
||||
@ -358,5 +359,6 @@ if __name__ == "__main__":
|
||||
print 'Another instance of this program is already running.'
|
||||
exit(0)
|
||||
"""
|
||||
|
||||
# required during boot
|
||||
os.putenv('PATH', ENVPATH)
|
||||
main(sys.argv)
|
||||
|
Reference in New Issue
Block a user