diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-10-04 00:49:37 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-10-04 00:49:37 +0100 |
commit | 8b543746ca0866a074278aeb9e5cb27fcf1d3bad (patch) | |
tree | 97b33d21853e95cbcfb7a7ebb9b5085cd1ae625c /iurt_root_command | |
parent | 171ad7c79eacd797a2aef0488a52069bb1ef8a62 (diff) | |
download | iurt-8b543746ca0866a074278aeb9e5cb27fcf1d3bad.tar iurt-8b543746ca0866a074278aeb9e5cb27fcf1d3bad.tar.gz iurt-8b543746ca0866a074278aeb9e5cb27fcf1d3bad.tar.bz2 iurt-8b543746ca0866a074278aeb9e5cb27fcf1d3bad.tar.xz iurt-8b543746ca0866a074278aeb9e5cb27fcf1d3bad.zip |
Bring lo up in the chroot
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-x | iurt_root_command | 4 |
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 { |