diff -rup virtinst-0.300.2/virt-install virtinst-0.300.2.new/virt-install
--- virtinst-0.300.2/virt-install 2008-01-07 09:46:01.000000000 -0500
+++ virtinst-0.300.2.new/virt-install 2008-02-19 12:23:55.000000000 -0500
@@ -296,6 +296,8 @@ def parse_args():
# Misc options
parser.add_option("-d", "--debug", action="store_true", dest="debug",
help=_("Print debugging information"))
+ parser.add_option("", "--noreboot", action="store_true", dest="noreboot",
+ help=_("Disables the automatic rebooting when the installation is complete."))
(options,args) = parser.parse_args()
@@ -499,9 +501,13 @@ def main():
print _("Domain installation does not appear to have been\n successful. If it was, you can restart your domain\n by running 'virsh start %s'; otherwise, please\n restart your installation.") %(guest.name,)
sys.exit(0)
- print _("Guest installation complete... restarting guest.")
- dom.create()
- guest.connect_console(conscb)
+ if options.noreboot:
+ print _("Guest installation complete... you can restart your domain\n"
+ "by running 'virsh start %s'") %(guest.name,)
+ else:
+ print _("Guest installation complete... restarting guest.")
+ dom.create()
+ guest.connect_console(conscb)
except RuntimeError, e:
print >> sys.stderr, _("ERROR: "), e
sys.exit(1)