Skip to contentSkip to conversation

xm reboot

PATCH New aq 1 participant 1 message Aug 11, 2005

lore
Share & tools
lore

aq

author
#0 lore raw

PATCH 1/1 xm reboot

This patch fixes "xm reboot" command.

# diffstat xm_reboot.patch 
 main.py |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
tools/python/xen/xm/main.py +1 -2
diff -r d95ea17567c6 tools/python/xen/xm/main.py
@@ -289,13 +289,12 @@
     args.insert(0,"bogus")
     destroy.main(args)
             
-# TODO: make reboot do the right thing, right now
-# reboot and shutdown are exactly the same
 def xm_reboot(args):
     arg_check(args,1,"reboot")
     # ugly hack because the opt parser apparently wants
     # the subcommand name just to throw it away!
     args.insert(0,"bogus")
+    args.insert(2,"-R")
     from xen.xm import shutdown
     shutdown.main(args)
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel