From 6d342a22061fd063efece23ff2b640ba4e32a802 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 19 Jul 2025 17:57:02 +0000 Subject: iurt: Use ip instead of ifconfig to bring lo up It was silently failing when ifconfig is not installed, and we already depend on ip in that command. --- NEWS | 2 ++ iurt_root_command | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7869e73..8d76df4 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- iurt: Use ip instead of ifconfig to bring lo up + 0.9.4 - iurt: Fix getting srpm name when parsing the spec causes some output on stdout diff --git a/iurt_root_command b/iurt_root_command index fa9a13d..5dbc4f5 100755 --- a/iurt_root_command +++ b/iurt_root_command @@ -424,7 +424,7 @@ sub netns_create { check_path_authorized($dest) or return; my $nsname = basename($dest); system("ip", "netns", "add", $nsname) and return; - system("ip", "netns", "exec", $nsname, "ifconfig", "lo", "up"); + system("ip", "netns", "exec", $nsname, "ip", "link", "set", "lo", "up"); # We don't configure a DNS server so make sure one is not excepted system('sed', '-i', 's|^hosts:.*|hosts: files|', "$dest/etc/nsswitch.conf"); # Some packages want a default route -- cgit v1.2.1