From 0279036aad4179112a7b6ca2c21c640333a18368 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 4 Jul 2014 22:26:20 +0200 Subject: [PATCH] Pass --directory=/ to schroot --- modules/porterbox/files/dd-schroot-cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/porterbox/files/dd-schroot-cmd b/modules/porterbox/files/dd-schroot-cmd index e2d2111ef..8dc7a4b4b 100755 --- a/modules/porterbox/files/dd-schroot-cmd +++ b/modules/porterbox/files/dd-schroot-cmd @@ -88,7 +88,7 @@ class WrappedRunner(): def __init__(self, session, args, unshare=True): self.unshare = unshare if not os_supports_unshare(): self.unshare = False - s,r = self.run('schroot', '-c', session, '--run-session', '--', 'env', 'DEBIAN_FRONTEND=noninteractive', *args) + s,r = self.run('schroot', '-c', session, '--directory=/', '--run-session', '--', 'env', 'DEBIAN_FRONTEND=noninteractive', *args) if s != 0: die("Command %s exited due to signal %d."%(' '.join(args), s)) if r != 0: -- 2.20.1