From 4542dfad9d493f42e8b9c1c2b2da476f0e7ff815 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 4 Oct 2017 19:04:51 +0100 Subject: Add an option to disable netns --- lib/Iurt/Chroot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Iurt/Chroot.pm') 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; -- cgit v1.2.1