Apparently errRun isn't as flexible as I thought...

This commit is contained in:
Bob Lantz
2012-04-08 20:49:21 -07:00
parent 197b083fbc
commit 149a1f5639
+2 -2
View File
@@ -316,8 +316,8 @@ def mountCgroups():
if 'cgroups on %s' % cgdir not in mounts:
raise Exception( "cgroups not mounted on " + cgdir )
if 'cpuset on %s' % csdir not in mounts:
errRun( 'mkdir -p', csdir )
errRun( 'mount -t cgroup -ocpuset cpuset', csdir )
errRun( 'mkdir -p ' + csdir )
errRun( 'mount -t cgroup -ocpuset cpuset ' + csdir )
def natural( text ):
"To sort sanely/alphabetically: sorted( l, key=natural )"