Use `lxc exec --mode=noninteractive` which is more widely compatible

Closes #371
pull/372/head
Brian Candler 6 years ago
parent 49399dfa1a
commit d1c84552ec

@ -63,7 +63,7 @@ class Stream(mitogen.parent.Stream):
bits = [
self.lxc_path,
'exec',
'--force-noninteractive',
'--mode=noninteractive',
self.container,
'--',
]

@ -18,7 +18,7 @@ class FakeLxcTest(testlib.RouterMixin, unittest2.TestCase):
argv = eval(context.call(os.getenv, 'ORIGINAL_ARGV'))
self.assertEquals(argv[0], lxc_path)
self.assertEquals(argv[1], 'exec')
self.assertEquals(argv[2], '--force-noninteractive')
self.assertEquals(argv[2], '--mode=noninteractive')
self.assertEquals(argv[3], 'container_name')

Loading…
Cancel
Save