mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-31 08:25:36 +00:00
Merge pull request #1915 from balena-io/1914-mixed-arch-fleets
config generate, os configure: Add support for mixed arch fleets
This commit is contained in:
commit
1accb885a9
@ -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…
x
Reference in New Issue
Block a user