support for centos 5.5 image
smbaker [Mon, 24 Jun 2013 20:29:44 +0000 (13:29 -0700)]
lxcsu-internal

index 184b68f..894b08e 100755 (executable)
@@ -80,7 +80,7 @@ def main ():
                 slice_path = path
                 pid = slice_path.split('/')[2]
                 cmdline = open('/proc/%s/cmdline'%pid).read().rstrip('\n\x00')
-                if (cmdline == '/sbin/init'):
+                if (cmdline == '/sbin/init') or (cmdline.startswith("init [")):
                     slice_spec = slice_path
                     arch = getarch('/proc/%s/exe'%pid)
                     break