summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-06-19 16:19:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-06-19 16:19:57 +0000
commit301e6e30d2d70e1454ca85c872773e6652b0f743 (patch)
treea6c8c93681dbd7084494dd5a796ad182926b9462 /perl-install/install/steps.pm
parent938983fb49d353314ad046b9f2ccc3c7ce6711c5 (diff)
downloaddrakx-backup-do-not-use-301e6e30d2d70e1454ca85c872773e6652b0f743.tar
drakx-backup-do-not-use-301e6e30d2d70e1454ca85c872773e6652b0f743.tar.gz
drakx-backup-do-not-use-301e6e30d2d70e1454ca85c872773e6652b0f743.tar.bz2
drakx-backup-do-not-use-301e6e30d2d70e1454ca85c872773e6652b0f743.tar.xz
drakx-backup-do-not-use-301e6e30d2d70e1454ca85c872773e6652b0f743.zip
- auto_install:
o ensure /etc/resolv.conf is configured in /mnt for network installs (reported by guillomovitch on freenode #mandrivafr)
Diffstat (limited to 'perl-install/install/steps.pm')
-rw-r--r--perl-install/install/steps.pm6
1 files changed, 6 insertions, 0 deletions
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";