summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-11-07 17:10:45 +0000
committerOlivier Blin <oblin@mandriva.org>2005-11-07 17:10:45 +0000
commitd939c1f4174b5d6153c26f018c087264d7a0e886 (patch)
tree1cd0a2017a3694b264954d85f6e6f5bed5a9176a /perl-install
parentb9e8007cdbc5c38476f16350e6761168b52f0456 (diff)
downloaddrakx-d939c1f4174b5d6153c26f018c087264d7a0e886.tar
drakx-d939c1f4174b5d6153c26f018c087264d7a0e886.tar.gz
drakx-d939c1f4174b5d6153c26f018c087264d7a0e886.tar.bz2
drakx-d939c1f4174b5d6153c26f018c087264d7a0e886.tar.xz
drakx-d939c1f4174b5d6153c26f018c087264d7a0e886.zip
set hostname only after packages have been installed, or else graphical urpmi may fail
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/network.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 67dd579bf..9624c1c11 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -104,7 +104,6 @@ sub write_network_conf {
$net->{network}{NETWORKING} = 'yes';
setVarsInSh($::prefix . $network_file, $net->{network}, qw(HOSTNAME NETWORKING GATEWAY GATEWAYDEV NISDOMAIN FORWARD_IPV4 NETWORKING_IPV6 IPV6_DEFAULTDEV));
- $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
sub write_zeroconf {
@@ -608,6 +607,8 @@ sub configure_network {
require network::shorewall;
my $shorewall = network::shorewall::read();
$shorewall && !$shorewall->{disabled} and network::shorewall::write($shorewall);
+
+ $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
#- make net_applet reload the configuration