From dd7c30bd6b30a6ac3cf23b5460e8337f147b13a2 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 4 Jan 2026 15:30:25 +0000 Subject: drakclock: fix config file read/write for chrony and ntpsec (mga#34664) drakclock only supports selecting a server pool, not individual servers, so use the "pool" directive instead if the "server" directive. Rename the subroutines in timezone.pm for clarity. ntpsec overrides /etc/ntp.conf with settings found in /etc/ntp.d/, so we need to read/write /etc/ntp.d/use-pool. Both chrony and ntpsec support the iburst option, so we can write that unconditionally. --- perl-install/install/any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install/any.pm') diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 83b255efd..8772879ac 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -133,7 +133,7 @@ sub preConfigureTimezone { $o->{timezone}{timezone} ||= timezone::bestTimezone($o->{locale}{country}); my $utc = every { !isFat_or_NTFS($_) } @{$o->{fstab}}; - my $ntp = timezone::ntp_server(); + my $ntp = timezone::ntp_pool(); add2hash_($o->{timezone}, { UTC => $utc, ntp => $ntp }); #- Make the timezone available to urpm::mirrors. -- cgit v1.2.1