From cef9e3b3cd7b7e1f6ca10e92c0d02886cdde2631 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 7 Aug 2023 21:25:17 +0200 Subject: [PATCH] Add ip=enp0s2:any to default kernel cmdline extra When booting with --qemu-gui, the network interface is named differently so let's account for that and configure networkd to manage that interface as well. --- mkosi/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/config.py b/mkosi/config.py index 5eecdaff5..a3649a841 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -1909,7 +1909,7 @@ def load_kernel_command_line_extra(args: argparse.Namespace) -> list[str]: ] if not any(s.startswith("ip=") for s in args.kernel_command_line_extra): - cmdline += ["ip=enp0s1:any", "ip=host0:any"] + cmdline += ["ip=enp0s1:any", "ip=enp0s2:any", "ip=host0:any"] if not any(s.startswith("loglevel=") for s in args.kernel_command_line_extra): cmdline += ["loglevel=4"] -- 2.47.2