mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
Rename ExtLinuxFile interface to match the codebase
This commit is contained in:
parent
1e48d02781
commit
51b5cff7b0
@ -12,7 +12,7 @@ export interface ConfigOptions {
|
|||||||
[key: string]: string | string[];
|
[key: string]: string | string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ExtLinuxFile {
|
interface ExtlinuxFile {
|
||||||
labels: {
|
labels: {
|
||||||
[labelName: string]: {
|
[labelName: string]: {
|
||||||
[directive: string]: string;
|
[directive: string]: string;
|
||||||
@ -304,9 +304,9 @@ export class ExtlinuxConfigBackend extends DeviceConfigBackend {
|
|||||||
return ExtlinuxConfigBackend.bootConfigVarPrefix + configName;
|
return ExtlinuxConfigBackend.bootConfigVarPrefix + configName;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static parseExtlinuxFile(confStr: string): ExtLinuxFile {
|
private static parseExtlinuxFile(confStr: string): ExtlinuxFile {
|
||||||
|
|
||||||
const file: ExtLinuxFile = {
|
const file: ExtlinuxFile = {
|
||||||
globals: { },
|
globals: { },
|
||||||
labels: { },
|
labels: { },
|
||||||
};
|
};
|
||||||
@ -354,7 +354,7 @@ export class ExtlinuxConfigBackend extends DeviceConfigBackend {
|
|||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static extlinuxFileToString(file: ExtLinuxFile): string {
|
private static extlinuxFileToString(file: ExtlinuxFile): string {
|
||||||
let ret = '';
|
let ret = '';
|
||||||
_.each(file.globals, (value, directive) => {
|
_.each(file.globals, (value, directive) => {
|
||||||
ret += `${directive} ${value}\n`;
|
ret += `${directive} ${value}\n`;
|
||||||
|
Loading…
Reference in New Issue
Block a user