summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-05-23 18:22:20 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-05-23 18:31:00 +0100
commit69d79ea884ceb252b1be00d3d6b48f5b6c9c990f (patch)
treee09afea63fb2d5d665ea9e75d1ab79bf43b4386d
parentb3aad1868700a0a88d18142891b659d0a42d714b (diff)
downloaddrakiso-69d79ea884ceb252b1be00d3d6b48f5b6c9c990f.tar
drakiso-69d79ea884ceb252b1be00d3d6b48f5b6c9c990f.tar.gz
drakiso-69d79ea884ceb252b1be00d3d6b48f5b6c9c990f.tar.bz2
drakiso-69d79ea884ceb252b1be00d3d6b48f5b6c9c990f.tar.xz
drakiso-69d79ea884ceb252b1be00d3d6b48f5b6c9c990f.zip
Enable remote host name resolution when running stage2 installer.
-rw-r--r--lib/MGA/DrakISO/BuildRoot.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MGA/DrakISO/BuildRoot.pm b/lib/MGA/DrakISO/BuildRoot.pm
index 1b3ed34..894657d 100644
--- a/lib/MGA/DrakISO/BuildRoot.pm
+++ b/lib/MGA/DrakISO/BuildRoot.pm
@@ -133,6 +133,8 @@ sub install_live_system {
mkdir_p($etc);
output($etc . '/hosts', "127.0.0.1 localhost\n");
+ copy_to_root($chroot, '/etc/', undef, '/etc/resolv.conf');
+
my $var = $chroot . '/var';
mkdir_p($var);