[node-patches] Change in ovirt-node[master]: installer: Fix cron based reboot
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Thu Nov 15 11:07:18 UTC 2012
Fabian Deutsch has uploaded a new change for review.
Change subject: installer: Fix cron based reboot
......................................................................
installer: Fix cron based reboot
Crond is expecting a newline at the end of each cron entry which wasn't
added in previous versions.
rhbz#847103
Change-Id: I767cbfc87291870f5a13e9337a9d5386ff7376ac
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/ovirtnode/install.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/62/9262/1
diff --git a/scripts/ovirtnode/install.py b/scripts/ovirtnode/install.py
index 15cec4d..c6d1f2b 100755
--- a/scripts/ovirtnode/install.py
+++ b/scripts/ovirtnode/install.py
@@ -492,7 +492,7 @@
_functions.PRODUCT_SHORT)
if reboot is not None and reboot == "Y":
f = open('/var/spool/cron/root', 'w')
- f.write('* * * * * sleep 10 && /sbin/reboot')
+ f.write('* * * * * sleep 10 && /sbin/reboot\n')
f.close()
#ensure crond is started
_functions.subprocess_closefds("crond", shell=True,
--
To view, visit http://gerrit.ovirt.org/9262
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I767cbfc87291870f5a13e9337a9d5386ff7376ac
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list