Fix nsenter commands on centos
The follow-context switch is not valid on early releases of systemd. This change removes the optional switch so that nsenter can work on all of our platforms. Change-Id: I13d05ba8bcfe785257a9cf98dbdb6024ec937816 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
8fcc904d71
commit
a9ee4932cb
@ -124,8 +124,7 @@ class Connection(SSH.Connection):
|
||||
' --net={path}/net'
|
||||
' --pid={path}/pid'
|
||||
' --uts={path}/uts'
|
||||
' --ipc={path}/ipc'
|
||||
' --follow-context').format(path=pid_path)
|
||||
' --ipc={path}/ipc').format(path=pid_path)
|
||||
if _pad:
|
||||
cmd = '%s -- su - %s -c %s' % (
|
||||
_pad,
|
||||
|
Loading…
x
Reference in New Issue
Block a user