From: Anthony PERARD Date: Wed, 7 Jun 2023 18:35:17 +0000 (+0100) Subject: ts-host-install: fix ntp.conf path on bookworm X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6c28ab2fd84c5e9d15736401ec00aad951afa2a1;p=osstest.git ts-host-install: fix ntp.conf path on bookworm Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- diff --git a/ts-host-install b/ts-host-install index f79a1be..61433e6 100755 --- a/ts-host-install +++ b/ts-host-install @@ -151,7 +151,13 @@ END my $ntpserver = get_target_property($ho, 'NtpServer'); if ($ntpserver) { - target_editfile_root($ho, '/etc/ntp.conf', sub { + my $ntpconf_path; + if ($ho->{Suite} =~ m/lenny|squeeze|wheezy|jessie|stretch|buster/) { + $ntpconf_path = '/etc/ntp.conf'; + } else { + $ntpconf_path = '/etc/ntpsec/ntp.conf'; + } + target_editfile_root($ho, $ntpconf_path, sub { my $done= 0; while () { if (m/^server\b|^pool\b\s/) {