summaryrefslogtreecommitdiffstats
path: root/patches/fuel-main/0001-ntpd-autostart-at-Fuel-master-boot-time.patch
blob: 5375c82a1adc09913ab96e9a78ee8154b00d1f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
: Copyright (c) 2017 Enea AB and others.
:
: All rights reserved. This program and the accompanying materials
: are made available under the terms of the Apache License, Version 2.0
: which accompanies this distribution, and is available at
: http://www.apache.org/licenses/LICENSE-2.0
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Fri, 5 May 2017 20:40:19 +0200
Subject: [PATCH] ntpd autostart at Fuel master boot time

Closes-bug: 1688631

Change-Id: I9bc4e4cb9918bedef2408abb304696fc431ed378
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
 iso/bootstrap_admin_node.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iso/bootstrap_admin_node.sh b/iso/bootstrap_admin_node.sh
index dbcac5f..f5d1583 100755
--- a/iso/bootstrap_admin_node.sh
+++ b/iso/bootstrap_admin_node.sh
@@ -542,6 +542,7 @@ fi
 # Sync time
 systemctl stop ntpd
 systemctl start ntpdate || echo "Failed to synchronize time with 'ntpdate'"
+systemctl enable ntpd
 systemctl start ntpd

 bash /etc/rc.local