# mkosi Changelog
+## v24
+
+- The default kernel command line of `console=ttyS0` (or equivalent for
+ other architectures) has been removed. The required `console=`
+ argument to have the kernel output to the serial console has to be
+ added manually from `v24` onwards.
+
## v23.1
- Respin due to git tag mismatch
/usr/lib/kernel/install.d/50-dracut.install
# Make sure that SELinux doesn't run in enforcing mode even if it's pulled in as a dependency.
-KernelCommandLine=console=ttyS0 enforcing=0
+KernelCommandLine=enforcing=0
[Host]
@QemuMem=4G
return None
-def config_default_kernel_command_line(namespace: argparse.Namespace) -> list[str]:
- return [f"console={namespace.architecture.default_serial_tty()}"]
-
-
def make_enum_parser(type: type[StrEnum]) -> Callable[[str], StrEnum]:
def parse_enum(value: str) -> StrEnum:
try:
metavar="OPTIONS",
section="Content",
parse=config_make_list_parser(delimiter=" "),
- default_factory_depends=("architecture",),
- default_factory=config_default_kernel_command_line,
help="Set the kernel command line (only bootable images)",
),
ConfigSetting(
`KernelCommandLine=`, `--kernel-command-line=`
: Use the specified kernel command line when building images.
- Defaults to `console=ttyS0`. For `arm`, `s390` and `ppc`, `ttyS0` is replaced
- with `ttyAMA0`, `ttysclp0` or `hvc0`, respectively.
`KernelModulesInclude=`, `--kernel-modules-include=`
: Takes a list of regex patterns that specify kernel modules to include in the image. Patterns should be