aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command4
1 files changed, 3 insertions, 1 deletions
diff --git a/iurt_root_command b/iurt_root_command
index 8c1b265..18068d0 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -416,7 +416,9 @@ sub btrfs_snapshot {
sub netfs_create {
my ($_run, $dest) = @_;
check_path_authorized($dest) or return;
- return !system("ip", "netns", "add", basename($dest));
+ my $nsname = basename($dest);
+ system("ip", "netns", "add", $nsname) and return;
+ return !system("ip", "netns", "exec", $nsname, "ifconfig", "lo", "up");
}
sub netfs_delete {