Fix wo-kernel service start

This commit is contained in:
VirtuBox
2020-05-12 01:42:04 +02:00
parent 0f5fd0a349
commit 596e7bf03b
3 changed files with 12 additions and 1 deletions

View File

@@ -1709,6 +1709,7 @@ def pre_stack(self):
if not os.path.isfile('/opt/wo-kernel.sh'):
WOTemplate.deploy(self, '/opt/wo-kernel.sh',
'wo-kernel-script.mustache', data)
WOFileUtils.chmod(self, '/opt/wo-kernel.sh', 0o700)
if not os.path.isfile('/lib/systemd/system/wo-kernel.service'):
WOTemplate.deploy(
self, '/lib/systemd/system/wo-kernel.service',