device.coffee: Remove hardcode of resin-boot partitions's mount point

Signed-off-by: Theodor Gherzan <theodor@gherzan.ro>
This commit is contained in:
Theodor Gherzan 2016-09-01 13:10:00 +00:00
parent de1f6a8f67
commit 32bf433af1
2 changed files with 2 additions and 1 deletions

View File

@ -49,3 +49,4 @@ module.exports =
'RESIN_API_KEY'
]
dataPath: checkString(process.env.RESIN_DATA_PATH) ? '/resin-data'
bootMountPoint: checkString(process.env.BOOT_MOUNTPOINT) ? '/boot'

View File

@ -47,7 +47,7 @@ exports.reboot = ->
exports.hostConfigEnvVarPrefix = 'RESIN_HOST_'
bootConfigEnvVarPrefix = 'RESIN_HOST_CONFIG_'
bootBlockDevice = '/dev/mmcblk0p1'
bootMountPoint = '/mnt/root/boot'
bootMountPoint = '/mnt/root' + config.bootMountPoint
bootConfigPath = bootMountPoint + '/config.txt'
configRegex = new RegExp('(' + _.escapeRegExp(bootConfigEnvVarPrefix) + ')(.+)')
forbiddenConfigKeys = [