kameleon-builder 2.2.2 → 2.2.3
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 +7 -0
- data/CHANGELOG.rst +6 -0
- data/README.rst +21 -17
- data/lib/kameleon/persistent_cache.rb +2 -2
- data/templates/steps/bootstrap/switch_context_qemu.yaml +21 -2
- data/templates/steps/bootstrap/switch_context_virtualbox.yaml +21 -2
- data/version.txt +1 -1
- metadata +11 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a2dd769a06842822d30b2bdbf697bafdac743992
|
4
|
+
data.tar.gz: 940236d90915c6cfbd083279268bb2ce32f8a2ba
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2870bb6011c52bca58978b58b5a1fb93314e7ef976bb8cc32d7b5a9042b11c33f36c9834e7cc949d1be4694fbcdec47c737d3c290b44c1dac2fb4885f3a1ea95
|
7
|
+
data.tar.gz: ad3aa91cee5f93ca7ae94d2651212ece607e1ca305083832023a76c99801d62da511da18692c9e258a8d72308d6202e50d97fe24ecb1bf431a673be586c5f2f4
|
data/CHANGELOG.rst
CHANGED
data/README.rst
CHANGED
@@ -7,40 +7,44 @@ step by step your own distribution. At start Kameleon is used to create custom
|
|
7
7
|
kvm, LXC, VirtualBox, iso images, ..., but as it is designed to be very generic
|
8
8
|
you can probably do a lot more than that.
|
9
9
|
|
10
|
+
.. _`installation`:
|
11
|
+
|
10
12
|
------------
|
11
13
|
Installation
|
12
14
|
------------
|
13
15
|
|
14
|
-
Gem package
|
15
|
-
-----------
|
16
|
-
|
17
16
|
To install the latest release from `RubyGems`_:
|
18
17
|
|
19
18
|
.. _RubyGems: https://rubygems.org/gems/kameleon-builder
|
20
19
|
|
21
|
-
|
20
|
+
From RubyGems
|
21
|
+
-------------
|
22
22
|
|
23
|
-
|
23
|
+
Debian/Ubuntu
|
24
|
+
-------------
|
24
25
|
|
25
|
-
|
26
|
+
::
|
26
27
|
|
27
|
-
|
28
|
-
gem
|
29
|
-
gem install kameleon-builder-*.gem
|
28
|
+
apt-get install ruby-childprocess
|
29
|
+
gem install --no-ri --no-rdoc kameleon-builder
|
30
30
|
|
31
|
-
|
31
|
+
Fedora
|
32
|
+
------
|
32
33
|
|
34
|
+
::
|
33
35
|
|
34
|
-
|
35
|
-
|
36
|
+
yum install rubygem-childprocess
|
37
|
+
gem install --no-ri --no-rdoc kameleon-builder
|
36
38
|
|
37
|
-
These packages contain Kameleon and all its dependencies (Ruby, polipo and all
|
38
|
-
gems with their native extensions already compiled). These packages are made
|
39
|
-
with `omnibus project`_.
|
40
39
|
|
41
|
-
|
40
|
+
From Source
|
41
|
+
-----------
|
42
42
|
|
43
|
-
|
43
|
+
::
|
44
|
+
|
45
|
+
git clone https://github.com/oar-team/kameleon.git && cd kameleon
|
46
|
+
gem build kameleon-builder.gemspec
|
47
|
+
gem install kameleon-builder-*.gem
|
44
48
|
|
45
49
|
-----
|
46
50
|
Usage
|
@@ -99,7 +99,7 @@ module Kameleon
|
|
99
99
|
end
|
100
100
|
|
101
101
|
def start_web_proxy_in(directory)
|
102
|
-
|
102
|
+
sleep 2 # this is for assuring that the cache is correctly created
|
103
103
|
## setting current step dir
|
104
104
|
@current_step_dir = directory
|
105
105
|
## This function assumes that the cache directory has already been created by the engine
|
@@ -125,7 +125,7 @@ module Kameleon
|
|
125
125
|
|
126
126
|
def pack()
|
127
127
|
Kameleon.ui.info("Packing up the generated cache in #{@cwd}/#{@name}-cache.tar")
|
128
|
-
execute("tar","-cf #{@name}-cache.tar -C
|
128
|
+
execute("tar","-cf #{@name}-cache.tar -C #{@cache_dir} .",@cwd)
|
129
129
|
end
|
130
130
|
|
131
131
|
def unpack(cache_path)
|
@@ -27,8 +27,27 @@
|
|
27
27
|
- install_initial_bootloader:
|
28
28
|
- exec_out: mkdir -p $$rootfs/boot/extlinux
|
29
29
|
- exec_out: extlinux --install $$rootfs/boot/extlinux 2>&1
|
30
|
-
- exec_out:
|
31
|
-
|
30
|
+
- exec_out: |
|
31
|
+
MBR_PATH=
|
32
|
+
PATHS=("/usr/share/syslinux/mbr.bin"
|
33
|
+
"/usr/lib/bios/syslinux/mbr.bin"
|
34
|
+
"/usr/lib/syslinux/bios/mbr.bin"
|
35
|
+
"/usr/lib/extlinux/mbr.bin"
|
36
|
+
"/usr/lib/syslinux/mbr.bin"
|
37
|
+
"/usr/lib/syslinux/mbr/mbr.bin"
|
38
|
+
"/usr/lib/EXTLINUX/mbr.bin")
|
39
|
+
for element in "${PATHS[@]}"
|
40
|
+
do
|
41
|
+
if [ -f "$element" ]; then
|
42
|
+
MBR_PATH="$element"
|
43
|
+
break
|
44
|
+
fi
|
45
|
+
done
|
46
|
+
if [ "$MBR_PATH" == "" ]; then
|
47
|
+
fail "unable to locate the extlinux mbr"
|
48
|
+
else
|
49
|
+
dd if="$MBR_PATH" of="$$disk_device" bs=440 2>&1
|
50
|
+
fi
|
32
51
|
- write_out:
|
33
52
|
- $$rootfs/boot/extlinux/extlinux.conf
|
34
53
|
- |
|
@@ -27,8 +27,27 @@
|
|
27
27
|
- install_initial_bootloader:
|
28
28
|
- exec_out: mkdir -p $$rootfs/boot/extlinux
|
29
29
|
- exec_out: extlinux --install $$rootfs/boot/extlinux 2>&1
|
30
|
-
- exec_out:
|
31
|
-
|
30
|
+
- exec_out: |
|
31
|
+
MBR_PATH=
|
32
|
+
PATHS=("/usr/share/syslinux/mbr.bin"
|
33
|
+
"/usr/lib/bios/syslinux/mbr.bin"
|
34
|
+
"/usr/lib/syslinux/bios/mbr.bin"
|
35
|
+
"/usr/lib/extlinux/mbr.bin"
|
36
|
+
"/usr/lib/syslinux/mbr.bin"
|
37
|
+
"/usr/lib/syslinux/mbr/mbr.bin"
|
38
|
+
"/usr/lib/EXTLINUX/mbr.bin")
|
39
|
+
for element in "${PATHS[@]}"
|
40
|
+
do
|
41
|
+
if [ -f "$element" ]; then
|
42
|
+
MBR_PATH="$element"
|
43
|
+
break
|
44
|
+
fi
|
45
|
+
done
|
46
|
+
if [ "$MBR_PATH" == "" ]; then
|
47
|
+
fail "unable to locate the extlinux mbr"
|
48
|
+
else
|
49
|
+
dd if="$MBR_PATH" of="$$disk_device" bs=440 2>&1
|
50
|
+
fi
|
32
51
|
- write_out:
|
33
52
|
- $$rootfs/boot/extlinux/extlinux.conf
|
34
53
|
- |
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.3
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kameleon-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.2.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Salem Harrache
|
@@ -12,56 +11,51 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date: 2014-
|
14
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
16
15
|
dependencies:
|
17
16
|
- !ruby/object:Gem::Dependency
|
18
17
|
name: childprocess
|
19
18
|
requirement: !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
19
|
requirements:
|
22
20
|
- - ~>
|
23
21
|
- !ruby/object:Gem::Version
|
24
22
|
version: 0.5.3
|
25
|
-
- -
|
23
|
+
- - '>='
|
26
24
|
- !ruby/object:Gem::Version
|
27
25
|
version: 0.3.0
|
28
26
|
type: :runtime
|
29
27
|
prerelease: false
|
30
28
|
version_requirements: !ruby/object:Gem::Requirement
|
31
|
-
none: false
|
32
29
|
requirements:
|
33
30
|
- - ~>
|
34
31
|
- !ruby/object:Gem::Version
|
35
32
|
version: 0.5.3
|
36
|
-
- -
|
33
|
+
- - '>='
|
37
34
|
- !ruby/object:Gem::Version
|
38
35
|
version: 0.3.0
|
39
36
|
- !ruby/object:Gem::Dependency
|
40
37
|
name: thor
|
41
38
|
requirement: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
39
|
requirements:
|
44
40
|
- - ~>
|
45
41
|
- !ruby/object:Gem::Version
|
46
42
|
version: '0.19'
|
47
|
-
- -
|
43
|
+
- - '>='
|
48
44
|
- !ruby/object:Gem::Version
|
49
45
|
version: 0.15.0
|
50
46
|
type: :runtime
|
51
47
|
prerelease: false
|
52
48
|
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
49
|
requirements:
|
55
50
|
- - ~>
|
56
51
|
- !ruby/object:Gem::Version
|
57
52
|
version: '0.19'
|
58
|
-
- -
|
53
|
+
- - '>='
|
59
54
|
- !ruby/object:Gem::Version
|
60
55
|
version: 0.15.0
|
61
56
|
- !ruby/object:Gem::Dependency
|
62
57
|
name: table_print
|
63
58
|
requirement: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
59
|
requirements:
|
66
60
|
- - ~>
|
67
61
|
- !ruby/object:Gem::Version
|
@@ -69,7 +63,6 @@ dependencies:
|
|
69
63
|
type: :runtime
|
70
64
|
prerelease: false
|
71
65
|
version_requirements: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
66
|
requirements:
|
74
67
|
- - ~>
|
75
68
|
- !ruby/object:Gem::Version
|
@@ -268,27 +261,26 @@ files:
|
|
268
261
|
homepage: http://kameleon.readthedocs.org/
|
269
262
|
licenses:
|
270
263
|
- GPL-2
|
264
|
+
metadata: {}
|
271
265
|
post_install_message:
|
272
266
|
rdoc_options: []
|
273
267
|
require_paths:
|
274
268
|
- lib
|
275
269
|
required_ruby_version: !ruby/object:Gem::Requirement
|
276
|
-
none: false
|
277
270
|
requirements:
|
278
|
-
- -
|
271
|
+
- - '>='
|
279
272
|
- !ruby/object:Gem::Version
|
280
273
|
version: '0'
|
281
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
|
-
none: false
|
283
275
|
requirements:
|
284
|
-
- -
|
276
|
+
- - '>='
|
285
277
|
- !ruby/object:Gem::Version
|
286
278
|
version: '0'
|
287
279
|
requirements: []
|
288
280
|
rubyforge_project:
|
289
|
-
rubygems_version: 1.
|
281
|
+
rubygems_version: 2.1.11
|
290
282
|
signing_key:
|
291
|
-
specification_version:
|
283
|
+
specification_version: 4
|
292
284
|
summary: Kameleon is a tool to build virtual machines from scratch
|
293
285
|
test_files:
|
294
286
|
- tests/helper.rb
|