From 3cebfa9f789c973f94f285da2a4edcc4095e63c0 Mon Sep 17 00:00:00 2001 From: Christina Ying Wang Date: Thu, 22 Aug 2024 14:30:41 -0700 Subject: [PATCH] Revert PR #2364 Change-type: patch Signed-off-by: Christina Ying Wang --- src/supervisor.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/supervisor.ts b/src/supervisor.ts index d9e10093..e6581543 100644 --- a/src/supervisor.ts +++ b/src/supervisor.ts @@ -45,8 +45,8 @@ export class Supervisor { initializeContractRequirements({ supervisorVersion: version, - deviceType: conf.deviceType, - deviceArch: conf.deviceArch, + deviceType: await config.get('deviceType'), + deviceArch: await config.get('deviceArch'), l4tVersion: await osRelease.getL4tVersion(), }); @@ -58,8 +58,9 @@ export class Supervisor { await deviceState.initialized(); + const unmanaged = await config.get('unmanaged'); logger.logSystemMessage('Supervisor starting', {}, 'Supervisor start'); - if (conf.legacyAppsPresent && !conf.unmanaged) { + if (conf.legacyAppsPresent && !unmanaged) { log.info('Legacy app detected, running migration'); await normaliseLegacyDatabase(); }