Merge pull request #1659 from balena-os/remove-nuc-from-extra-uenv

Refactor extra_uEnv to not match with intel nuc
This commit is contained in:
bulldozer-balena[bot] 2021-04-15 23:57:17 +00:00 committed by GitHub
commit fc5ac75171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -60,8 +60,7 @@ export class ExtraUEnv extends ConfigBackend {
public async matches(deviceType: string): Promise<boolean> { public async matches(deviceType: string): Promise<boolean> {
return ( return (
(deviceType === 'intel-nuc' || (deviceType.endsWith('-nano') ||
deviceType.endsWith('-nano') ||
deviceType.endsWith('-nano-emmc') || deviceType.endsWith('-nano-emmc') ||
deviceType.endsWith('-tx2')) && deviceType.endsWith('-tx2')) &&
(await fs.exists(ExtraUEnv.bootConfigPath)) (await fs.exists(ExtraUEnv.bootConfigPath))

View File

@ -261,7 +261,7 @@ const MATCH_TESTS = [
{ type: 'jetson-nano-emmc', supported: true }, { type: 'jetson-nano-emmc', supported: true },
{ type: 'jn30b-nano', supported: true }, { type: 'jn30b-nano', supported: true },
{ type: 'photon-nano', supported: true }, { type: 'photon-nano', supported: true },
{ type: 'intel-nuc', supported: true }, { type: 'intel-nuc', supported: false },
{ type: 'raspberry', supported: false }, { type: 'raspberry', supported: false },
{ type: 'fincm3', supported: false }, { type: 'fincm3', supported: false },
{ type: 'asus-tinker-board', supported: false }, { type: 'asus-tinker-board', supported: false },