Commit 6ecf61ef authored by Mike Hibler's avatar Mike Hibler

Expose the os_load '-c' option to reload nodes with their current image.

parent cdf021c4
......@@ -2382,6 +2382,11 @@ class experiment:
argstr += " -r "
pass
pass
elif opt == "usecurrent":
if xbool(val):
argstr += " -c "
pass
pass
pass
argstr += " -e "
......@@ -3989,6 +3994,11 @@ class node:
argstr += " -r "
pass
pass
elif opt == "usecurrent":
if xbool(val):
argstr += " -c "
pass
pass
pass
tokens = argdict["nodes"].split(",")
......
......@@ -402,7 +402,7 @@ class reload:
def apply(self):
try:
opts, req_args = getopt.getopt(self.argv, "i:p:m:sre:",
opts, req_args = getopt.getopt(self.argv, "i:p:m:sre:c",
[ "help" ]);
pass
except getopt.error, e:
......@@ -432,6 +432,9 @@ class reload:
elif opt == "-r":
params["reboot"] = "no";
pass
elif opt == "-c":
params["usecurrent"] = "yes";
pass
elif opt == "-e":
pid,eid = string.split(val, ",")
params["proj"] = pid;
......@@ -466,6 +469,7 @@ class reload:
print " -s - Do *not* wait for nodes to finish reloading";
print " -m - Specify internal image id (instead of -i and -p)";
print " -r - Do *not* reboot nodes; do that yourself";
print " -c - Reload nodes with the image currently on them";
print " -e - Reboot all nodes in an experiment";
print " node - Node to reboot (pcXXX)";
wrapperoptions();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment