=== modified file 'lava_dispatcher/client/master.py'
@@ -458,7 +458,8 @@
logging.info("Boot the system master image")
self.soft_reboot()
try:
- self.proc.expect("Uncompressing Linux")
+ image_boot_msg = self.device_option('image_boot_msg')
+ self.proc.expect(image_boot_msg)
self._in_master_shell(300)
except:
logging.exception("in_master_shell failed")
@@ -651,7 +652,9 @@
def _enter_uboot(self):
interrupt_boot_prompt = self.device_option('interrupt_boot_prompt')
self.proc.expect(interrupt_boot_prompt)
- self.proc.sendline("")
+
+ interrupt_boot_command = self.device_option('interrupt_boot_command')
+ self.proc.sendline(interrupt_boot_command)
def _boot_linaro_image(self):
self._boot(string_to_list(self.config.get('boot_cmds')))
=== modified file 'lava_dispatcher/default-config/lava-dispatcher/device-defaults.conf'
@@ -85,6 +85,12 @@
# The string to look for to interrupt the boot process
interrupt_boot_prompt = Hit any key to stop autoboot
+# The string command to stop the normal boot process
+interrupt_boot_command = ""
+
+# The string to look for to know that the boot process has begun
+image_boot_msg = Uncompressing Linux
+
# The character the boot loader uses as a prompt on this board.
bootloader_prompt = #