Commit ab4b3c0e authored by Łukasz Nowak's avatar Łukasz Nowak

software/kvm: Wrap kvm-controller

In order to work in deep directory structures it is required to have
kvm-controller script wrapped to avoid shabang limit.
parent 3716e67d
......@@ -98,7 +98,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true
url = ${:_profile_base_location_}/instance-kvm.cfg.jinja2
mode = 644
md5sum = dbb7c6e3e909ec0737fb54a0b20fb2d9
md5sum = c66ec96a73470148707937bf96436fd6
download-only = true
on-update = true
......
......@@ -158,7 +158,7 @@ context =
[kvm-controller]
recipe = slapos.recipe.template:jinja2
template = {{ template_kvm_controller_run }}
rendered = ${directory:scripts}/kvm_controller
rendered = ${directory:bin}/kvm_controller_raw
mode = 700
context =
section parameter_dict kvm-controller-parameter-dict
......@@ -187,7 +187,13 @@ recipe = slapos.cookbook:wrapper
socket-path = ${kvm-controller-parameter-dict:socket-path}
wrapper-path = ${directory:services}/kvm
command-line = ${kvm-run:rendered}
kvm-controller = ${kvm-controller:rendered}
kvm-controller = ${kvm-controller-wrapper:wrapper-path}
[kvm-controller-wrapper]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:scripts}/kvm_controller
command-line = ${kvm-controller:rendered}
[kvm-vnc-promise]
......@@ -616,7 +622,7 @@ parts =
certificate-authority
publish-connection-information
kvm-instance
kvm-controller
kvm-controller-wrapper
kvm-vnc-promise
kvm-disk-image-corruption-promise
websockify-sighandler
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment