mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-31 14:50:47 +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'
|
||||
]
|
||||
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_'
|
||||
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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user