+ for (sysctl_file, sysctl_name, sysctl_val) in sysctls:
+ for fn in ["/sbin/sysctl", "/usr/sbin/sysctl", "/bin/sysctl", "/usr/bin/sysctl"]:
+ if os.path.exists(fn):
+ os.system("mount -o remount,rw none /proc/sys")
+ os.system('%s -w %s=%s'%(fn, sysctl_name,sysctl_val))
+ os.system("mount -o remount,ro none /proc/sys")
+ break
+ else:
+ print "Error: image does not have a sysctl binary"