aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xiurt2
-rwxr-xr-xiurt_root_command2
3 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 8f16ef2..8c5e99b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+0.7.2.1
+- iurt: actually fix dns config with netns
+
0.7.2
- iurt: bring lo up in the chroot and point hostname to 127.0.0.1
- iurt: add an option to disable the use of network namespaces
diff --git a/iurt b/iurt
index 0b4a301..0595f74 100755
--- a/iurt
+++ b/iurt
@@ -326,7 +326,7 @@ plog_init($program_name, $run{logfd} || $LOG, 7, 1); # For parsing command line
# Display version information
#
-my $version = '0.7.2';
+my $version = '0.7.2.1';
plog("MSG", "This is iurt version $version");
my $todo = parseCommandLine($program_name, \@ARGV, \@params);
diff --git a/iurt_root_command b/iurt_root_command
index 5478df7..864e94f 100755
--- a/iurt_root_command
+++ b/iurt_root_command
@@ -420,7 +420,7 @@ sub netns_create {
system("ip", "netns", "add", $nsname) and return;
system("ip", "netns", "exec", $nsname, "ifconfig", "lo", "up");
# We don't configure a DNS server so make sure one is not excepted
- system("sed -i |^hosts:|hosts: files| $dest/etc/nsswitch.conf");
+ system("sed -i 's|^hosts:|hosts: files|' $dest/etc/nsswitch.conf");
# Some packages want a default route
system("ip", "netns", "exec", $nsname, "ip", "route", "add", "0.0.0.0/0", "dev", "lo");
my $hostname = `hostname`;