From 8c29bba1087dec9614e3d40f530ff90b79c8f662 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Tue, 16 Jan 2018 17:54:46 +0100 Subject: [PATCH] Don't use the deprecated 'os configure' format in internal calls Change-Type: patch --- lib/actions/config.coffee | 2 +- lib/actions/device.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actions/config.coffee b/lib/actions/config.coffee index 61466012..3b37c314 100644 --- a/lib/actions/config.coffee +++ b/lib/actions/config.coffee @@ -207,7 +207,7 @@ exports.reconfigure = .tap -> umountAsync(drive) .then (uuid) -> - configureCommand = "os configure #{drive} #{uuid}" + configureCommand = "os configure #{drive} --device #{uuid}" if options.advanced configureCommand += ' --advanced' return capitanoRunAsync(configureCommand) diff --git a/lib/actions/device.coffee b/lib/actions/device.coffee index db01db95..2e6fdca6 100644 --- a/lib/actions/device.coffee +++ b/lib/actions/device.coffee @@ -420,7 +420,7 @@ exports.init = capitanoRunAsync("device register #{application.app_name}") .then(resin.models.device.get) .tap (device) -> - configureCommand = "os configure '#{tempPath}' #{device.uuid}" + configureCommand = "os configure '#{tempPath}' --device #{device.uuid}" if options.config configureCommand += " --config '#{options.config}'" else if options.advanced