mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
Merge pull request #2241 from balena-os/config-txt-getBootConfig-arrayConf-patch
Patch config.txt backend to return array configs correctly
This commit is contained in:
commit
6536bd7fed
@ -157,6 +157,9 @@ export class ConfigTxt extends ConfigBackend {
|
||||
// Otherwise push the new value to the array
|
||||
const arrayConf = conf[key] == null ? [] : conf[key]!;
|
||||
arrayConf.push(value);
|
||||
if (conf[key] == null) {
|
||||
conf[key] = arrayConf;
|
||||
}
|
||||
}
|
||||
}
|
||||
continue;
|
||||
|
@ -17,6 +17,8 @@ describe('config/config-txt', () => {
|
||||
dtoverlay=ads7846
|
||||
enable_uart=1
|
||||
avoid_warnings=1
|
||||
gpio=8=pd
|
||||
gpio=17=op,dh
|
||||
gpu_mem=16
|
||||
hdmi_force_hotplug:1=1
|
||||
dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=13
|
||||
@ -34,6 +36,7 @@ describe('config/config-txt', () => {
|
||||
],
|
||||
enable_uart: '1',
|
||||
avoid_warnings: '1',
|
||||
gpio: ['8=pd', '17=op,dh'],
|
||||
gpu_mem: '16',
|
||||
initramfs: 'initramf.gz 0x00800000',
|
||||
'hdmi_force_hotplug:1': '1',
|
||||
|
Loading…
x
Reference in New Issue
Block a user