fuel-main: Backport ntpd autostart enablement 81/34381/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 5 May 2017 19:28:24 +0000 (21:28 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 5 May 2017 19:28:24 +0000 (21:28 +0200)
Upstream-bug: https://bugs.launchpad.net/fuel/+bug/1688631

Change-Id: I7bc2dac4442c1b02b21fef82a9b9c008f4dab9ac
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/fuel-main/0001-ntpd-autostart-at-Fuel-master-boot-time.patch [new file with mode: 0644]

diff --git a/patches/fuel-main/0001-ntpd-autostart-at-Fuel-master-boot-time.patch b/patches/fuel-main/0001-ntpd-autostart-at-Fuel-master-boot-time.patch
new file mode 100644 (file)
index 0000000..5375c82
--- /dev/null
@@ -0,0 +1,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