smart_proxy_discovery_image 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4dc7cb1398ac217438e11f78f53d58526a2c295
4
- data.tar.gz: 1724af6417967817b778f7529996ab85a6d6650b
3
+ metadata.gz: aaf0f3ab7f898a908612d91c5facd39e1956112b
4
+ data.tar.gz: 55bdee44f8dbbd6b5431f20b34624063ab665dfc
5
5
  SHA512:
6
- metadata.gz: b8ee13bb9505903bff9c0c989ccd2daaf6d4cec08f8efccf4b7e52759f03c4b1cd8814276c32e812d95b06831a800cc97c00f4d625482ca524c2d30e14bbc68e
7
- data.tar.gz: 738479e7aebcdd9a8e2f8cc653cdc231c2bd3b9e4c112446ff2d7993fd90242eef3de427d6389021efde1d0943ec660a76078acfac0dd0a29c530ed92ed0f5eb
6
+ metadata.gz: 48373330b8a7d67d78228abfb6381a3a2155f3155611f60fb08fb9ef8f306a837d1f8bae5f1e22ed3835df3cb63a8b8b02685328952f647dbcaf121779600d20
7
+ data.tar.gz: b18091252c9616cab41674aef1dba44eb5f4e0fd1a6f66aa24d6807c5f8a419e968cddda751095003a00698d26252c534503433e8f0f769e81c8a4ceaf148f20
@@ -15,6 +15,8 @@ module Proxy::DiscoveryImage
15
15
 
16
16
  put "/kexec" do
17
17
  body_data = request.body.read
18
+ # change virtual terminal out of newt screen
19
+ system("chvt", "2")
18
20
  logger.debug "Initiated kexec provisioning with #{body_data}"
19
21
  log_halt(500, "kexec binary was not found") unless (kexec = which('kexec'))
20
22
  begin
@@ -30,7 +32,7 @@ module Proxy::DiscoveryImage
30
32
  if ::Proxy::HttpDownload.new(data['initram'], '/tmp/initrd.img').start.join != 0
31
33
  log_halt 500, "cannot download initram for kexec!"
32
34
  end
33
- run_after_response 2, kexec, "--force", "--reset-vga", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz", *data['extra']
35
+ run_after_response 2, kexec, "--debug", "--force", "--reset-vga", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz", *data['extra']
34
36
  { :result => true }.to_json
35
37
  end
36
38
 
@@ -1,5 +1,5 @@
1
1
  module Proxy
2
2
  module DiscoveryImage
3
- VERSION = '1.0.7'
3
+ VERSION = '1.0.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_discovery_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Zapletal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-10 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Smart Proxy plugin providing Image API on discovered nodes. This plugin is only