Merge pull request #212 from resin-io/211-catch-non-btrfs-imagerootdir

Default to not bind mounting kmod if container distro can't be found
This commit is contained in:
Pablo Carranza Vélez 2016-07-18 23:08:44 -03:00 committed by GitHub
commit 711a9a8e22
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
* Default to not bind mounting kmod if container distro can't be found [Pablo]
* Use log-timestamp to add timestamps to logs [Pablo]
# v1.12.2

View File

@ -171,6 +171,9 @@ shouldMountKmod = (image) ->
utils.getOSVersion(rootDir + '/etc/os-release')
.then (version) ->
return version? and (version.match(/^Debian/i) or version.match(/^Raspbian/i))
.catch (err) ->
console.error("Error getting app OS release: ", err)
return false
application.start = start = (app) ->
volumes =