summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/install/steps.pm6
2 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index afa95f705..55201acaf 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,6 +1,7 @@
- auto_install:
o allow "automatic=met:http,ser:server,dir:/pub/dir
kickstart=/pub/auto_inst.cfg" to get http://server/pub/auto_inst.cfg (#31474)
+ o ensure /etc/resolv.conf is configured in /mnt for network installs
- add /etc/mke2fs.conf in order to format ext3fs with 4k blocks (#27377)
- diskdrake
o fix 1.9TB displayed as 1TB
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index 4ebeec8e0..c420d98ef 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -361,6 +361,12 @@ sub beforeInstallPackages {
require network::network;
network::network::add2hosts("localhost", "127.0.0.1");
+ #- resolv.conf will be modified at boot time
+ #- the following will ensure we have a working DNS during install
+ if (-e "/etc/resolv.conf" && ! -e "$::prefix/etc/resolv.conf") {
+ cp_af("/etc/resolv.conf", "$::prefix/etc");
+ }
+
log::l("setting excludedocs to $o->{excludedocs}");
substInFile { s/%_excludedocs.*//; $_ .= "%_excludedocs yes\n" if eof && $o->{excludedocs} } "$::prefix/etc/rpm/macros";