diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-08 17:55:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-09 13:22:00 +0100 |
commit | afcd4b9cbcda5a631679a962a0a5479101539e29 (patch) | |
tree | 2accd4dedfdb2a8ff5c250abf3443736cba8d736 /scripts/runqemu | |
parent | e9a09c8012931c8b4b22cb1de3fc7d967af11f0a (diff) | |
download | poky-afcd4b9cbcda5a631679a962a0a5479101539e29.tar.gz |
qemuboot/runqemu: Fix 6.2 and later kernel network device naming
With kernel 6.2 and later network devices are renamed by systemd. This does not
match with the current network device naming assumed in our configuration.
We may or may not change that naming but for now, pass the right kernel commandline
so things work as expected with newer kernels and removing a blocker on upgrading
to the 6.4 kernel by default.
(From OE-Core rev: 9e9c33d51e401fe2b4a632db74ccb3449e4b23ee)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 5e6793d44e..0e105a918b 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -203,7 +203,7 @@ class BaseConfig(object): | |||
203 | self.fsinfo = {} | 203 | self.fsinfo = {} |
204 | self.network_device = "-device e1000,netdev=net0,mac=@MAC@" | 204 | self.network_device = "-device e1000,netdev=net0,mac=@MAC@" |
205 | self.cmdline_ip_slirp = "ip=dhcp" | 205 | self.cmdline_ip_slirp = "ip=dhcp" |
206 | self.cmdline_ip_tap = "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8" | 206 | self.cmdline_ip_tap = "ip=192.168.7.@CLIENT@::192.168.7.@GATEWAY@:255.255.255.0::eth0:off:8.8.8.8 net.ifnames=0" |
207 | # Use different mac section for tap and slirp to avoid | 207 | # Use different mac section for tap and slirp to avoid |
208 | # conflicts, e.g., when one is running with tap, the other is | 208 | # conflicts, e.g., when one is running with tap, the other is |
209 | # running with slirp. | 209 | # running with slirp. |