summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-02-08 19:27:46 +0100
committerAngelo Naselli <anaselli@linux.it>2015-02-08 19:27:46 +0100
commitd4be53b62716ec14020f5c29bd68fd9c0ab8d27e (patch)
tree477447678fbc624ef5dbc1d9b0fa345a2be73a04
parentfbf27f4592f76cb9509a6c960444bb5b3436aeef (diff)
downloaddrakx-d4be53b62.tar
drakx-d4be53b62.tar.gz
drakx-d4be53b62.tar.bz2
drakx-d4be53b62.tar.xz
drakx-d4be53b62.zip
Create a symlink instead a hard copy to localtime see issue #14888
-rw-r--r--perl-install/timezone.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm
index efd1abd9d..98a33c368 100644
--- a/perl-install/timezone.pm
+++ b/perl-install/timezone.pm
@@ -64,8 +64,8 @@ sub write {
set_ntp_server($t->{ntp});
my $tz_prefix = get_timezone_prefix();
- eval { cp_af($tz_prefix . '/' . $t->{timezone}, "$::prefix/etc/localtime") };
- $@ and log::l("installing /etc/localtime failed");
+ unlink "$::prefix/etc/localtime" or log::l("unlinking $! failed");
+ symlink ($tz_prefix . '/' . $t->{timezone}, "$::prefix/etc/localtime") or log::l("linking /etc/localtime failed");
setVarsInSh("$::prefix/etc/sysconfig/clock", {
ZONE => $t->{timezone},
UTC => bool2text($t->{UTC}),