arguments += ["--devicetree", workdir(dtb)]
options += ["--ro-bind", dtb, workdir(dtb)]
+ if context.config.splash:
+ splash = context.root / os.fspath(context.config.splash).lstrip("/")
+ arguments += ["--splash", workdir(splash)]
+ options += ["--ro-bind", splash, workdir(splash)]
+
if context.config.secure_boot:
assert context.config.secure_boot_key
assert context.config.secure_boot_certificate
expanduser: bool = True,
expandvars: bool = True,
secret: bool = False,
+ absolute: bool = False,
constants: Sequence[str] = (),
) -> ConfigParseCallback[Path]:
def config_parse_path(value: Optional[str], old: Optional[Path]) -> Optional[Path]:
expanduser=expanduser,
expandvars=expandvars,
secret=secret,
+ absolute=absolute,
constants=constants,
)
initrd_volatile_packages: list[str]
microcode_host: bool
devicetree: Optional[Path]
+ splash: Optional[Path]
kernel_command_line: list[str]
kernel_modules_include: list[str]
kernel_modules_exclude: list[str]
parse=config_parse_string,
help="Devicetree to be used by the booting kernel",
),
+ ConfigSetting(
+ dest="splash",
+ section="Content",
+ parse=config_make_path_parser(required=False, absolute=True),
+ help="Splash screen image to be used by the booting kernel",
+ ),
ConfigSetting(
dest="kernel_command_line",
metavar="OPTIONS",
Initrd Packages: {line_join_list(config.initrd_packages)}
Initrd Volatile Packages: {line_join_list(config.initrd_volatile_packages)}
Devicetree: {none_to_none(config.devicetree)}
+ Splash: {none_to_none(config.splash)}
Kernel Command Line: {line_join_list(config.kernel_command_line)}
Kernel Modules Include: {line_join_list(config.kernel_modules_include)}
Kernel Modules Exclude: {line_join_list(config.kernel_modules_exclude)}
specified file relative to common paths where Linux distributions install
Devicetree files. It should typically have the format `<vendor>/<board>.dtb`.
+`Splash=`, `--splash=`
+: When set, the boot splash for any unified kernel image built by **mkosi** will
+ be picked up from the given path inside the image.
+
`MicrocodeHost=`, `--microcode-host=`
: When set to true only include microcode for the host's CPU in the image.
}
],
"SourceDateEpoch": 12345,
+ "Splash": "/splash",
"SplitArtifacts": [
"uki",
"kernel"
sign=False,
skeleton_trees=[ConfigTree(Path("/foo/bar"), Path("/")), ConfigTree(Path("/bar/baz"), Path("/qux"))],
source_date_epoch=12345,
+ splash=Path("/splash"),
split_artifacts=[ArtifactOutput.uki, ArtifactOutput.kernel],
ssh_certificate=Path("/path/to/cert"),
ssh_key=None,