mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-01 07:10:48 +00:00
device.coffee: Remove hardcode of resin-boot partitions's mount point
Signed-off-by: Theodor Gherzan <theodor@gherzan.ro>
This commit is contained in:
parent
de1f6a8f67
commit
32bf433af1
@ -49,3 +49,4 @@ module.exports =
|
|||||||
'RESIN_API_KEY'
|
'RESIN_API_KEY'
|
||||||
]
|
]
|
||||||
dataPath: checkString(process.env.RESIN_DATA_PATH) ? '/resin-data'
|
dataPath: checkString(process.env.RESIN_DATA_PATH) ? '/resin-data'
|
||||||
|
bootMountPoint: checkString(process.env.BOOT_MOUNTPOINT) ? '/boot'
|
||||||
|
@ -47,7 +47,7 @@ exports.reboot = ->
|
|||||||
exports.hostConfigEnvVarPrefix = 'RESIN_HOST_'
|
exports.hostConfigEnvVarPrefix = 'RESIN_HOST_'
|
||||||
bootConfigEnvVarPrefix = 'RESIN_HOST_CONFIG_'
|
bootConfigEnvVarPrefix = 'RESIN_HOST_CONFIG_'
|
||||||
bootBlockDevice = '/dev/mmcblk0p1'
|
bootBlockDevice = '/dev/mmcblk0p1'
|
||||||
bootMountPoint = '/mnt/root/boot'
|
bootMountPoint = '/mnt/root' + config.bootMountPoint
|
||||||
bootConfigPath = bootMountPoint + '/config.txt'
|
bootConfigPath = bootMountPoint + '/config.txt'
|
||||||
configRegex = new RegExp('(' + _.escapeRegExp(bootConfigEnvVarPrefix) + ')(.+)')
|
configRegex = new RegExp('(' + _.escapeRegExp(bootConfigEnvVarPrefix) + ')(.+)')
|
||||||
forbiddenConfigKeys = [
|
forbiddenConfigKeys = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user