Don't use the deprecated 'os configure' format in internal calls

Change-Type: patch
This commit is contained in:
Tim Perry 2018-01-16 17:54:46 +01:00
parent 4e41261237
commit 8c29bba108
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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