From 8b543746ca0866a074278aeb9e5cb27fcf1d3bad Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 4 Oct 2017 00:49:37 +0100 Subject: Bring lo up in the chroot --- NEWS | 2 ++ iurt_root_command | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index f33326a..be905fb 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- iurt: bring lo up in the chroot + 0.7.1 - iurt: also use --urpmi-root for urpmi.addmedia - iurt: always use --root or --urpmi-root, not plain chroot to call urpmi 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 { -- cgit v1.2.1