f"systemd.tty.columns.ttyS0={columns}",
f"systemd.tty.rows.ttyS0={lines}",
"console=ttyS0",
+ # Make sure we set up networking in the VM/container.
+ "systemd.wants=network-online.target",
+ # Make sure we don't load vmw_vmci which messes with virtio vsock.
+ "module_blacklist=vmw_vmci",
]
- if args.output_format == OutputFormat.cpio:
- cmdline += ["rd.systemd.unit=default.target"]
+ if not any(s.startswith("ip=") for s in args.kernel_command_line_extra):
+ cmdline += ["ip=enp0s1:any", "ip=host0:any"]
+
+ if not any(s.startswith("loglevel=") for s in args.kernel_command_line_extra):
+ cmdline += ["loglevel=4"]
+
+ if not any(s.startswith("SYSTEMD_SULOGIN_FORCE=") for s in args.kernel_command_line_extra):
+ cmdline += ["SYSTEMD_SULOGIN_FORCE=1"]
for s in args.kernel_command_line_extra:
key, sep, value = s.partition("=")