When syspreping a Windows image, sleep for 10 seconds before you
continue performing the various system preparation tasks.
if not self._wait_on_file(monitor, token):
raise FatalError("Windows booting timed out.")
else:
if not self._wait_on_file(monitor, token):
raise FatalError("Windows booting timed out.")
else:
+ time.sleep(10) # Just to be sure everything is up
- time.sleep(5) # Just to be sure everything is up
-
self.out.output("Disabling automatic logon ...", False)
self._disable_autologon()
self.out.success('done')
self.out.output("Disabling automatic logon ...", False)
self._disable_autologon()
self.out.success('done')
if rc != 0 and fatal:
reason = stderr if len(stderr) else stdout
if rc != 0 and fatal:
reason = stderr if len(stderr) else stdout
+ self.out.output("Command: `%s' failed. Reason: %s" %
+ (command, reason))
raise FatalError("Command: `%s' failed. Reason: %s" %
(command, reason))
raise FatalError("Command: `%s' failed. Reason: %s" %
(command, reason))