Refactor use of 'sudo -E'

This commit is contained in:
Carl D. Roth
2018-09-13 12:18:06 -07:00
committed by Wataru Ishida
parent bd96aea470
commit f2f76ca120

View File

@@ -473,8 +473,9 @@ rm -f /usr/sbin/policy-rc.d
for script in Configure.get('scripts', []):
logger.info("Configuration script %s..." % script)
onlu_execute_sudo("-E unshare -pf --mount-proc %s %s" % (script, dir_),
ex=OnlRfsError("script '%s' failed." % script))
onlu_execute_sudo("unshare -pf --mount-proc %s %s" % (script, dir_),
ex=OnlRfsError("script '%s' failed." % script),
env=True)
for command in Configure.get('commands', []):