aboutsummaryrefslogtreecommitdiffstats
path: root/iurt_root_command
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2017-10-06 01:01:20 +0100
committerPascal Terjan <pterjan@mageia.org>2017-10-06 01:01:20 +0100
commit25a0b8762f97e0cd6424e84859e69d76b9b6aca4 (patch)
treec92647726346853f89bb8249650759ef7329dce5 /iurt_root_command
parenta97f84bc51780d05e2446d7b0ed32ce983d5de37 (diff)
downloadiurt-25a0b8762f97e0cd6424e84859e69d76b9b6aca4.tar
iurt-25a0b8762f97e0cd6424e84859e69d76b9b6aca4.tar.gz
iurt-25a0b8762f97e0cd6424e84859e69d76b9b6aca4.tar.bz2
iurt-25a0b8762f97e0cd6424e84859e69d76b9b6aca4.tar.xz
iurt-25a0b8762f97e0cd6424e84859e69d76b9b6aca4.zip
Real fix for dns config0.7.2.2
Diffstat (limited to 'iurt_root_command')
-rwxr-xr-xiurt_root_command2
1 files changed, 1 insertions, 1 deletions
diff --git a/iurt_root_command b/iurt_root_command
index 864e94f..e332717 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 's|^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`;