mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 22:23:07 +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 = (
|
||||
deviceTypeA: BalenaSdk.DeviceType,
|
||||
deviceTypeB: BalenaSdk.DeviceType,
|
||||
appDeviceType: BalenaSdk.DeviceType,
|
||||
osDeviceType: BalenaSdk.DeviceType,
|
||||
) =>
|
||||
deviceTypeA.arch === deviceTypeB.arch &&
|
||||
!!deviceTypeA.isDependent === !!deviceTypeB.isDependent;
|
||||
getBalenaSdk().models.os.isArchitectureCompatibleWith(
|
||||
osDeviceType.arch,
|
||||
appDeviceType.arch,
|
||||
) && !!appDeviceType.isDependent === !!osDeviceType.isDependent;
|
||||
|
||||
export async function osProgressHandler(step: InitializeEmitter) {
|
||||
step.on('stdout', process.stdout.write.bind(process.stdout));
|
||||
|
Loading…
Reference in New Issue
Block a user