From: Thierry Parmentelat Date: Wed, 29 May 2013 13:30:03 +0000 (+0200) Subject: define a default for 'arch' as I find it sometimes undefined X-Git-Tag: lxctools-0.9-7~4 X-Git-Url: http://git.onelab.eu/?p=lxc-userspace.git;a=commitdiff_plain;h=5851c34c3ae60491401eed467fcc39273c0b738e define a default for 'arch' as I find it sometimes undefined --- diff --git a/lxcsu b/lxcsu index 9282a9a..97600cf 100644 --- a/lxcsu +++ b/lxcsu @@ -56,6 +56,9 @@ except: slice_spec = None +# xxx fixme xxx - provide a default as this is not always properly computed +arch = 'x86_64' + for e in output: try: l = e.rstrip() @@ -135,7 +138,6 @@ if (not umount('/sys/fs/cgroup')): pid = os.fork() -#arch = 'x86_64' if (pid == 0): cap_arg = '--drop='+drop_capabilities