diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-18 10:40:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-20 11:57:49 +0000 |
commit | 00f5339c2a6dea9e300939a1da8cbc32c18ed87f (patch) | |
tree | 68acaf4cbfa8cc74183a695842c7328317706f1a /meta/lib | |
parent | dc4eeab72cf926f721fc550f8800e383634119ed (diff) | |
download | poky-00f5339c2a6dea9e300939a1da8cbc32c18ed87f.tar.gz |
oeqa/qemurunner: Convert from ifconfig to use ip
ifconfig is obsolete and being removed, convert to use ip instead.
(From OE-Core rev: 3b2fb477750606976359884b18c33a37832e5a78)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 6cab9aa6b2..04e0334914 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
@@ -534,7 +534,7 @@ class QemuRunner: | |||
534 | self.logger.debug("Logged in as %s in serial console" % self.boot_patterns['send_login_user'].replace("\n", "")) | 534 | self.logger.debug("Logged in as %s in serial console" % self.boot_patterns['send_login_user'].replace("\n", "")) |
535 | if netconf: | 535 | if netconf: |
536 | # configure guest networking | 536 | # configure guest networking |
537 | cmd = "ifconfig eth0 %s netmask %s up\n" % (self.ip, self.netmask) | 537 | cmd = "ip addr add %s/%s dev eth0\nip link set dev eth0 up\n" % (self.ip, self.netmask) |
538 | output = self.run_serial(cmd, raw=True)[1] | 538 | output = self.run_serial(cmd, raw=True)[1] |
539 | if re.search(r"root@[a-zA-Z0-9\-]+:~#", output): | 539 | if re.search(r"root@[a-zA-Z0-9\-]+:~#", output): |
540 | self.logger.debug("configured ip address %s", self.ip) | 540 | self.logger.debug("configured ip address %s", self.ip) |