diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-10-04 19:04:51 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-10-04 20:04:57 +0100 |
commit | 4542dfad9d493f42e8b9c1c2b2da476f0e7ff815 (patch) | |
tree | 8aee293c9a08e2ff6f1e16477f61756fc384fdbd /lib/Iurt/Chroot.pm | |
parent | 90fe47509e924d561a1c2e07f06f194373a5a30e (diff) | |
download | iurt-4542dfad9d493f42e8b9c1c2b2da476f0e7ff815.tar iurt-4542dfad9d493f42e8b9c1c2b2da476f0e7ff815.tar.gz iurt-4542dfad9d493f42e8b9c1c2b2da476f0e7ff815.tar.bz2 iurt-4542dfad9d493f42e8b9c1c2b2da476f0e7ff815.tar.xz iurt-4542dfad9d493f42e8b9c1c2b2da476f0e7ff815.zip |
Add an option to disable netns
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r-- | lib/Iurt/Chroot.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 1bf019e..c54b180 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -316,7 +316,7 @@ sub create_build_chroot { } } - if ($ret) { + if ($ret && $config->{use_netns}) { sudo($config, '--netns_create', $chroot); } return $ret; |