Allow preloading jetson-tx2 images, improve flasher images detection and remove the --dont-detect-flasher-type-images option.

* update resin-preload to 5.0.0

Connects-To: #705

Change-Type: minor
This commit is contained in:
Alexis Svinartchouk 2017-10-27 11:49:07 +02:00
parent 36d3c92006
commit eef192ff68
4 changed files with 3 additions and 22 deletions

View File

@ -147,10 +147,6 @@ module.exports = {
parameter: 'splashImage.png',
description: 'path to a png image to replace the splash screen',
alias: 's'
}, {
signature: 'dont-detect-flasher-type-images',
boolean: true,
description: 'Disables the flasher type images detection: treats all images as non flasher types'
}, {
signature: 'dont-check-device-type',
boolean: true,
@ -197,8 +193,6 @@ module.exports = {
options.image = params.image;
options.appId = options.app;
delete options.app;
options.dontDetectFlasherTypeImages = options['dont-detect-flasher-type-images'];
delete options['dont-detect-flasher-type-images'];
options.splashImage = options['splash-image'];
delete options['splash-image'];
if (options['dont-check-device-type'] && !options.appId) {
@ -206,7 +200,7 @@ module.exports = {
}
return dockerUtils.getDocker(options).then(function(docker) {
var gotSignal, preloader;
preloader = new preload.Preloader(resin, docker, options.appId, options.commit, options.image, options.splashImage, options.proxy, options.dontDetectFlasherTypeImages);
preloader = new preload.Preloader(resin, docker, options.appId, options.commit, options.image, options.splashImage, options.proxy);
gotSignal = false;
nodeCleanup(function(exitCode, signal) {
if (signal) {

View File

@ -1101,10 +1101,6 @@ a specific application commit to preload, use "latest" to specify the latest com
path to a png image to replace the splash screen
#### --dont-detect-flasher-type-images
Disables the flasher type images detection: treats all images as non flasher types
#### --dont-check-device-type
Disables check for matching device types in image and application

View File

@ -140,11 +140,6 @@ module.exports =
description: 'path to a png image to replace the splash screen'
alias: 's'
}
{
signature: 'dont-detect-flasher-type-images'
boolean: true
description: 'Disables the flasher type images detection: treats all images as non flasher types'
}
{
signature: 'dont-check-device-type'
boolean: true
@ -187,9 +182,6 @@ module.exports =
options.appId = options.app
delete options.app
options.dontDetectFlasherTypeImages = options['dont-detect-flasher-type-images']
delete options['dont-detect-flasher-type-images']
options.splashImage = options['splash-image']
delete options['splash-image']
@ -208,7 +200,6 @@ module.exports =
options.image,
options.splashImage,
options.proxy,
options.dontDetectFlasherTypeImages
)
gotSignal = false

View File

@ -86,7 +86,7 @@
"resin-doodles": "0.0.1",
"resin-image-fs": "^2.3.0",
"resin-image-manager": "^5.0.0",
"resin-preload": "^4.0.9",
"resin-preload": "^5.0.0",
"resin-sdk": "^7.0.0",
"resin-sdk-preconfigured": "^6.9.0",
"resin-settings-client": "^3.6.1",
@ -105,4 +105,4 @@
"optionalDependencies": {
"removedrive": "^1.0.0"
}
}
}