[tor-commits] [gitian-builder/tor-browser-builder-2] Hack to make LXC work on some machines.
mikeperry at torproject.org
mikeperry at torproject.org
Thu Aug 1 14:08:29 UTC 2013
commit 66232895f5c80a3f50117766830c19a944600959
Author: Mike Perry <mikeperry-git at torproject.org>
Date: Thu Aug 1 16:04:24 2013 +0200
Hack to make LXC work on some machines.
Seems to be required after the rebase to the latest gitian-builder? Is $TUSER
not set correctly now?
---
libexec/on-target | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libexec/on-target b/libexec/on-target
index b8b781c..331e262 100755
--- a/libexec/on-target
+++ b/libexec/on-target
@@ -47,9 +47,9 @@ if [ -z "$USE_LXC" ]; then
ssh -oConnectTimeout=30 -oNoHostAuthenticationForLocalhost=yes -i ${GITIAN_BASE:-.}/var/id_dsa -p $VM_SSH_PORT $TUSER at localhost $*
else
config-lxc
- if [ $TUSER = "root" ]; then
- sudo lxc-start -n gitian -f var/lxc.config -- $*
- else
+ #if [ $TUSER = "root" ]; then
+ # sudo lxc-start -n gitian -f var/lxc.config -- $*
+ #else
sudo lxc-start -n gitian -f var/lxc.config -- sudo -i -u $TUSER $*
- fi
+# fi
fi
More information about the tor-commits
mailing list