aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
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