mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-30 02:28:51 +00:00
config generate, os configure: Add support for mixed arch fleets
Resolves: #1914 Change-type: minor Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
This commit is contained in:
parent
95f9443c2a
commit
497023965f
@ -132,11 +132,13 @@ export async function getManifest(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const areDeviceTypesCompatible = (
|
export const areDeviceTypesCompatible = (
|
||||||
deviceTypeA: BalenaSdk.DeviceType,
|
appDeviceType: BalenaSdk.DeviceType,
|
||||||
deviceTypeB: BalenaSdk.DeviceType,
|
osDeviceType: BalenaSdk.DeviceType,
|
||||||
) =>
|
) =>
|
||||||
deviceTypeA.arch === deviceTypeB.arch &&
|
getBalenaSdk().models.os.isArchitectureCompatibleWith(
|
||||||
!!deviceTypeA.isDependent === !!deviceTypeB.isDependent;
|
osDeviceType.arch,
|
||||||
|
appDeviceType.arch,
|
||||||
|
) && !!appDeviceType.isDependent === !!osDeviceType.isDependent;
|
||||||
|
|
||||||
export async function osProgressHandler(step: InitializeEmitter) {
|
export async function osProgressHandler(step: InitializeEmitter) {
|
||||||
step.on('stdout', process.stdout.write.bind(process.stdout));
|
step.on('stdout', process.stdout.write.bind(process.stdout));
|
||||||
|
Loading…
Reference in New Issue
Block a user