def load_environment(args: argparse.Namespace) -> dict[str, str]:
env = {
"SYSTEMD_TMPFILES_FORCE_SUBVOL": "0",
+ "KERNEL_INSTALL_BYPASS": "1",
}
if args.image_id is not None:
) -> None:
bwrap(apt_cmd(state) + [operation, *packages],
apivfs=state.root if apivfs else None,
- env=dict(KERNEL_INSTALL_BYPASS="1") | state.config.environment)
+ env=state.config.environment)
def invoke_dnf(state: MkosiState, command: str, packages: Iterable[str], apivfs: bool = True) -> None:
bwrap(dnf_cmd(state) + [command] + sort_packages(packages),
apivfs=state.root if apivfs else None,
- env=dict(KERNEL_INSTALL_BYPASS="1") | state.config.environment)
+ env=state.config.environment)
fixup_rpmdb_location(state.root)
def invoke_pacman(state: MkosiState, packages: Sequence[str], apivfs: bool = True) -> None:
bwrap(pacman_cmd(state) + ["-Sy"] + sort_packages(packages),
apivfs=state.root if apivfs else None,
- env=dict(KERNEL_INSTALL_BYPASS="1") | state.config.environment)
+ env=state.config.environment)
) -> None:
bwrap(zypper_cmd(state) + [verb, *packages, *options],
apivfs=state.root if apivfs else None,
- env=dict(KERNEL_INSTALL_BYPASS="1") | state.config.environment)
+ env=state.config.environment)
fixup_rpmdb_location(state.root)