aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2025-07-19 17:57:02 +0000
committerPascal Terjan <pterjan@mageia.org>2025-07-19 17:57:02 +0000
commit6d342a22061fd063efece23ff2b640ba4e32a802 (patch)
treedbaa912c426763bf8275868b150ee44a01728640 /iurt_root_command
parent076ee61b51172c6f9f97f1cd6baa812a0af95cf6 (diff)
downloadiurt-master.tar
iurt-master.tar.gz
iurt-master.tar.bz2
iurt-master.tar.xz
iurt-master.zip
iurt: Use ip instead of ifconfig to bring lo upHEADmaster
It was silently failing when ifconfig is not installed, and we already depend on ip in that command.
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command2
1 files changed, 1 insertions, 1 deletions
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