From: Daan De Meyer Date: Fri, 28 Jul 2023 08:39:48 +0000 (+0200) Subject: Only install bash in the initrd on gentoo X-Git-Tag: v15~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0f5e7ba44198e855263445b81b0c406e2b8318;p=thirdparty%2Fmkosi.git Only install bash in the initrd on gentoo I initially added this because no shell is pulled into the initrd by default on gentoo when just installing systemd and util-linux. Since this seems to override other distro's default shell, let's limit this to just gentoo and rely on other distros pulling in a shell via dependencies. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 415ec2a18..ed90b2ebb 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -854,9 +854,9 @@ def install_unified_kernel(state: MkosiState, roothash: Optional[str]) -> None: "--package", "systemd", "--package", "util-linux", "--package", "kmod", - "--package", "bash", *(["--package", "dmsetup"] if state.config.distribution.is_apt_distribution() else []), *(["--package", "udev"] if not state.config.distribution.is_portage_distribution() else []), + *(["--package", "bash"] if state.config.distribution.is_portage_distribution() else []), "--output", f"{state.config.output}-initrd", *(["--image-version", state.config.image_version] if state.config.image_version else []), "--make-initrd", "yes",