system-builder 0.0.10 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  class SystemBuilder::DebianBoot
2
2
 
3
3
  attr_accessor :version, :mirror, :architecture
4
- attr_accessor :exclude, :include
4
+ attr_accessor :exclude, :include, :components
5
5
 
6
6
  attr_reader :root
7
7
  attr_reader :configurators
@@ -29,6 +29,7 @@ class SystemBuilder::DebianBoot
29
29
  @version = :lenny
30
30
  @mirror = @@default_mirror
31
31
  @architecture = :i386
32
+ @components = ["main"]
32
33
  @exclude = []
33
34
  @include = [ "debian-archive-keyring" ]
34
35
 
@@ -236,7 +237,8 @@ class SystemBuilder::DebianBoot
236
237
  :arch => architecture,
237
238
  :exclude => exclude.join(','),
238
239
  :include => include.join(','),
239
- :variant => :minbase
240
+ :variant => :minbase,
241
+ :components => components.join(',')
240
242
  }.collect do |k,v|
241
243
  ["--#{k}", Array(v).join(',')] unless v.blank?
242
244
  end.compact
@@ -37,7 +37,7 @@ class SystemBuilder::DiskSquashfsImage
37
37
 
38
38
  def create_partition_table
39
39
  # Partition must be bootable for syslinux
40
- FileUtils::sh "echo '#{free_sectors},,L,*' | /sbin/sfdisk --no-reread -uS -H16 -S63 #{file}"
40
+ FileUtils::sh "echo '#{free_sectors},,L,*' | /sbin/sfdisk --force --no-reread -uS -H16 -S63 #{file}"
41
41
  end
42
42
 
43
43
  def format_boot_fs
@@ -60,6 +60,7 @@ class SystemBuilder::Task < Rake::TaskLib
60
60
  required_packages << "rsync"
61
61
  required_packages << "dosfstools"
62
62
  required_packages << "syslinux"
63
+ required_packages << "squashfs-tools"
63
64
 
64
65
  FileUtils.sudo "apt-get install #{required_packages.join(' ')}"
65
66
  end
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module SystemBuilder
5
- VERSION = '0.0.10'
5
+ VERSION = '0.0.12'
6
6
 
7
7
  @@configurations = {}
8
8
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system-builder
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 7
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 10
9
- version: 0.0.10
9
+ - 12
10
+ version: 0.0.12
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alban Peignier
@@ -14,16 +15,18 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-09 00:00:00 +02:00
18
+ date: 2010-08-30 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: rubyforge
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ">="
26
28
  - !ruby/object:Gem::Version
29
+ hash: 7
27
30
  segments:
28
31
  - 2
29
32
  - 0
@@ -35,14 +38,16 @@ dependencies:
35
38
  name: hoe
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 21
41
46
  segments:
42
47
  - 2
43
48
  - 6
44
- - 0
45
- version: 2.6.0
49
+ - 1
50
+ version: 2.6.1
46
51
  type: :development
47
52
  version_requirements: *id002
48
53
  description: FIX (describe your package)
@@ -105,23 +110,27 @@ rdoc_options:
105
110
  require_paths:
106
111
  - lib
107
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
+ none: false
108
114
  requirements:
109
115
  - - ">="
110
116
  - !ruby/object:Gem::Version
117
+ hash: 3
111
118
  segments:
112
119
  - 0
113
120
  version: "0"
114
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
+ none: false
115
123
  requirements:
116
124
  - - ">="
117
125
  - !ruby/object:Gem::Version
126
+ hash: 3
118
127
  segments:
119
128
  - 0
120
129
  version: "0"
121
130
  requirements: []
122
131
 
123
132
  rubyforge_project: system-builder
124
- rubygems_version: 1.3.6
133
+ rubygems_version: 1.3.7
125
134
  signing_key:
126
135
  specification_version: 3
127
136
  summary: FIX (describe your package)