From eef192ff68c0152fa4885ea7fa93650e968bf955 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Fri, 27 Oct 2017 11:49:07 +0200 Subject: [PATCH] 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 --- build/actions/preload.js | 8 +------- doc/cli.markdown | 4 ---- lib/actions/preload.coffee | 9 --------- package.json | 4 ++-- 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/build/actions/preload.js b/build/actions/preload.js index 76b7caf8..609ee9a0 100644 --- a/build/actions/preload.js +++ b/build/actions/preload.js @@ -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) { diff --git a/doc/cli.markdown b/doc/cli.markdown index 578929ee..0e6ce911 100644 --- a/doc/cli.markdown +++ b/doc/cli.markdown @@ -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 diff --git a/lib/actions/preload.coffee b/lib/actions/preload.coffee index a9019cf8..17ed427f 100644 --- a/lib/actions/preload.coffee +++ b/lib/actions/preload.coffee @@ -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 diff --git a/package.json b/package.json index 6e4769e1..a85676dc 100644 --- a/package.json +++ b/package.json @@ -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" } -} \ No newline at end of file +}