diff options
| author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2026-01-13 17:27:33 +0000 |
|---|---|---|
| committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2026-01-16 22:42:58 +0000 |
| commit | 25f74ddb44213151a7547149e37b0b69a8308ff8 (patch) | |
| tree | 9554f761bc2071b4d236fdc06ad595e93b2789a6 /perl-install/install/any.pm | |
| parent | 9a66062be6806d10e79365da408993f8dca565df (diff) | |
| download | drakx-25f74ddb44213151a7547149e37b0b69a8308ff8.tar drakx-25f74ddb44213151a7547149e37b0b69a8308ff8.tar.gz drakx-25f74ddb44213151a7547149e37b0b69a8308ff8.tar.bz2 drakx-25f74ddb44213151a7547149e37b0b69a8308ff8.tar.xz drakx-25f74ddb44213151a7547149e37b0b69a8308ff8.zip | |
installer: ask for user's timezone at the start of installation (mga#34909)
This allows us to set the system clock to the correct time. This is
needed to prevent rpm verification failures when very recently built
packages are fetched from network media. The new Sequoia PGP backend
rejects packages that appear to have been signed in the future.
Diffstat (limited to 'perl-install/install/any.pm')
| -rw-r--r-- | perl-install/install/any.pm | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 8772879ac..19bd157cb 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -123,23 +123,6 @@ sub getAvailableSpace { fs::any::getAvailableSpace($o->{fstab}); } -sub preConfigureTimezone { - my ($o) = @_; - require timezone; - - #- cannot be done in install cuz' timeconfig %post creates funny things - add2hash($o->{timezone}, timezone::read()) if $o->{isUpgrade}; - - $o->{timezone}{timezone} ||= timezone::bestTimezone($o->{locale}{country}); - - my $utc = every { !isFat_or_NTFS($_) } @{$o->{fstab}}; - my $ntp = timezone::ntp_pool(); - add2hash_($o->{timezone}, { UTC => $utc, ntp => $ntp }); - - #- Make the timezone available to urpm::mirrors. - write_installer_timezone($o->{timezone}); -} - =item write_installer_timezone($timezone) Writes a minimal version of $timezone to /etc/sysconfig/clock for use by urpm::mirrors @@ -229,7 +212,6 @@ sub ask_suppl_media_url { my ($o, $method, $o_url) = @_; if (member($method, qw(ftp http))) { - preConfigureTimezone($o); any::ask_mirror_and_downloader($o, $o->{options}, 'downloader_only'); $o->{packages}{options}{downloader} = $o->{options}{downloader}; any::ask_mirror($o, 'distrib', $o_url); |
