Merge pull request #2365 from balena-os/revert-2364

Revert PR #2364
This commit is contained in:
Christina Wang 2024-08-22 17:23:34 -07:00 committed by GitHub
commit 6fbf95e93f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}