[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 02/35] ts-host-install: Expect "pool" in ntp.conf, not only "server"



This is helpful for playing around with stretch, which seems to use
this option by default.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 ts-host-install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ts-host-install b/ts-host-install
index ecf5f0b..99ba130 100755
--- a/ts-host-install
+++ b/ts-host-install
@@ -134,7 +134,7 @@ END
        target_editfile_root($ho, '/etc/ntp.conf', sub {
            my $done= 0;
            while (<EI>) {
-               if (m/^server\s/) {
+               if (m/^server\b|^pool\b\s/) {
                    if ($ho->{Suite} =~ m/lenny|squeeze|wheezy|jessie/) {
                        $_= $done ? "" : "server $ntpserver\n";
                    } else {
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.