alias matrix, verify-naming-alias-matrix in pretest - Canonical bareOsRegisterBootStepHook / Invoke / EmitBareBootStepHint with legacy *Phase* wrappers; typings, runtime caps, docs, CHANGELOG - VFS: evaluateBareOsVfsPathPolicy; rename hypercore-pack proc locals; add /proc/bare_os/security_posture.json - Stock kernel: invokeCtxBootHooks, boot txn journal transactionState, extension cycle extId diagnostics, boot snapshot schema 2 + provenance - Offline LKG: BARE_OS_OFFLINE_LKG_ACTIVE / REASON env hints - Protocol: BARE_OS_PROTOMUX_CHANNEL_SCHEMA_VERSION re-exported from channel.js - Stubs: corestore suspend/resume register, swarm snapshot, extension resolver, initd state enum; shell split note; benchmark/SDK script placeholders - Docs: ota-channels, conformance-dashboard, kernel-extensions specs index, data README; handbook/developer-guide/users-manual cross-links - Sync packages/bare-os-seeder/kernel with kernel/init.js and STRUCTURE.md
23 lines
507 B
JavaScript
23 lines
507 B
JavaScript
/**
|
|
* Initd unit state machine labels (documentation parity with stock initd runner).
|
|
*/
|
|
export const BARE_OS_INITD_UNIT_STATE = Object.freeze({
|
|
INACTIVE: 'inactive',
|
|
ACTIVATING: 'activating',
|
|
ACTIVE: 'active',
|
|
DEACTIVATING: 'deactivating',
|
|
FAILED: 'failed'
|
|
})
|
|
|
|
/**
|
|
* @param {string} s
|
|
* @returns {boolean}
|
|
*/
|
|
export function isKnownInitdUnitState(s) {
|
|
const v = String(s || '')
|
|
for (const x of Object.values(BARE_OS_INITD_UNIT_STATE)) {
|
|
if (x === v) return true
|
|
}
|
|
return false
|
|
}
|