=== modified file 'lava_dispatcher/actions/deploy.py'
@@ -165,7 +165,7 @@
cmd = ("sudo flock /var/lock/lava-lmc.lck linaro-media-create --hwpack-force-yes --dev %s "
"--image-file %s --binary %s --hwpack %s --image-size 3G" %
- (client.device_type, image_file, rootfs_path, hwpack_path))
+ (client.lmc_dev_arg, image_file, rootfs_path, hwpack_path))
logging.info("Executing the linaro-media-create command")
logging.info(cmd)
rc, output = getstatusoutput(cmd)
=== modified file 'lava_dispatcher/client.py'
@@ -76,6 +76,10 @@
def default_network_interface(self):
return self.device_option("default_network_interface")
+ @property
+ def lmc_dev_arg(self):
+ return self.device_option("lmc_dev_arg")
+
def in_master_shell(self, timeout=10):
""" Check that we are in a shell on the master image
"""
=== modified file 'lava_dispatcher/default-config/lava-dispatcher/device-defaults.conf'
@@ -51,3 +51,8 @@
# The character the boot loader uses as a prompt on this board.
bootloader_prompt = #
+
+# The argument to pass to --dev when invoking linaro-media-create
+# Defaults to device_type because that's what was used before this
+# option was introduced.
+lmc_dev_arg = %(device_type)s