buildahcker
Version:
Buildahcker is a node.js library to create and run commands in OCI (Open Container Initiative) container images (or docker images), based on Buildah and a hash-based cache. It also contains utilities to easily create a partitioned bootable disk image of a
27 lines (26 loc) • 1.01 kB
TypeScript
import { type Writable } from "stream";
import { type ImageOrContainer } from "../container";
import type { ContainerCache } from "../containerCache";
import { type CertificateOptions } from "./openssl";
import { SignKey } from "./sbsign";
import { DiskLocation } from "../steps";
export type SecureBootKeys = "PK" | "KEK" | "db";
export interface SecureBootOptions {
outputDirectory: string;
defaultCertOptions?: CertificateOptions;
certOptions?: Record<SecureBootKeys, CertificateOptions>;
guid?: string;
opensslSource?: ImageOrContainer;
efitoolsSource?: string;
logger: Writable;
apkCache: string;
containerCache: ContainerCache;
}
export declare const secureBoot: ({ outputDirectory, defaultCertOptions, certOptions, guid, opensslSource, efitoolsSource, logger, apkCache, containerCache, }: SecureBootOptions) => Promise<{
key: SignKey;
authFiles: {
"PK.auth": DiskLocation;
"KEK.auth": DiskLocation;
"db.auth": DiskLocation;
};
}>;