mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 13:47:52 +00:00
commit
dd382158dd
@ -229,7 +229,7 @@ limitations under the License.
|
||||
}
|
||||
return capitano.runAsync(configure).then(function() {
|
||||
var message;
|
||||
message = 'Initializing a device requires administration permissions\ngiven that we need to access raw devices directly.\n';
|
||||
message = 'Initializing a device requires administrative permissions\ngiven that we need to access raw devices directly.\n';
|
||||
return helpers.sudo(['os', 'initialize', temporalPath, '--type', application.device_type], message);
|
||||
})["catch"](function(error) {
|
||||
return resin.models.device.remove(device.uuid)["finally"](function() {
|
||||
|
@ -176,7 +176,7 @@ limitations under the License.
|
||||
return resin.models.device.isOnline(uuid).then(function(isOnline) {
|
||||
if (isOnline) {
|
||||
spinner.stop();
|
||||
console.info("Device became online: " + deviceName);
|
||||
console.info("The device **" + deviceName + "** is online!");
|
||||
} else {
|
||||
spinner.start();
|
||||
return Promise.delay(3000).then(poll);
|
||||
|
@ -298,7 +298,7 @@ exports.init =
|
||||
configure += ' --advanced' if options.advanced
|
||||
capitano.runAsync(configure).then ->
|
||||
message = '''
|
||||
Initializing a device requires administration permissions
|
||||
Initializing a device requires administrative permissions
|
||||
given that we need to access raw devices directly.
|
||||
|
||||
'''
|
||||
|
@ -135,7 +135,7 @@ exports.awaitDevice = (uuid) ->
|
||||
resin.models.device.isOnline(uuid).then (isOnline) ->
|
||||
if isOnline
|
||||
spinner.stop()
|
||||
console.info("Device became online: #{deviceName}")
|
||||
console.info("The device **#{deviceName}** is online!")
|
||||
return
|
||||
else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user