Refactor extra_uEnv to not match with intel nuc

Change-type: patch
Signed-off-by: Miguel Casqueira <miguel@balena.io>
This commit is contained in:
Miguel Casqueira 2021-04-14 01:20:26 -04:00
parent 5a7511b1a2
commit e6eda0fca7
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> {
return (
(deviceType === 'intel-nuc' ||
deviceType.endsWith('-nano') ||
(deviceType.endsWith('-nano') ||
deviceType.endsWith('-nano-emmc') ||
deviceType.endsWith('-tx2')) &&
(await fs.exists(ExtraUEnv.bootConfigPath))

View File

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