system-builder 0.0.22 → 0.0.23

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- system-builder (0.0.22)
4
+ system-builder (0.0.23)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
data/bin/box CHANGED
@@ -18,7 +18,7 @@ OptionParser.new do |opts|
18
18
  "The target to clone an image") { |arg| @options[:target] = arg }
19
19
  opts.on("-i", "--image=<disk image>", String,
20
20
  "The box image to be cloned") { |arg| @options[:image] = arg }
21
- opts.on("-h", "--host=<host>", String,
21
+ opts.on("-o", "--host=<host>", String,
22
22
  "The host to be upgraded") { |arg| @options[:host] = arg }
23
23
  opts.on("-s", "--skip-format",
24
24
  "Skip partitionning and formatting") { |arg| @options[:skip_format] = true }
@@ -76,7 +76,7 @@ class BoxCommand
76
76
  name = $1
77
77
  release = $2
78
78
  disk_image = "#{tmpdir}/#{name}-#{release}.disk"
79
- sh "ssh dev.dbx.tryphon.priv cat /var/lib/buildbot/dist/#{name}/#{name}-#{release}.disk.gz | gunzip -c > #{disk_image}" unless File.exist?(disk_image)
79
+ sh "ssh dev.tryphon.priv cat /var/lib/buildbot/dist/#{name}/#{name}-#{release}.disk.gz | gunzip -c > #{disk_image}" unless File.exist?(disk_image)
80
80
  end
81
81
 
82
82
  raise "Can't find #{disk_image}" unless File.exists?(disk_image)
@@ -104,7 +104,7 @@ class BoxCommand
104
104
  puts "Formatting filesystem"
105
105
  sh "echo ',,L,*' | sudo /sbin/sfdisk -f -uS #{target}"
106
106
  sh "grep -q #{partition} /proc/mounts && sudo umount #{partition} || true"
107
- sudo "mke2fs -j -L boot #{partition}"
107
+ sudo "mke2fs -L boot #{partition}"
108
108
  end
109
109
 
110
110
  sh "[ -d #{partition_mount_point} ]||mkdir #{partition_mount_point}"
@@ -26,7 +26,7 @@ for device in `list_devices`; do
26
26
  echo "check if $device ($fs_type) is the boot image"
27
27
 
28
28
  case $fs_type in
29
- ext3|iso9660)
29
+ ext2|ext3|iso9660)
30
30
  mount -r -t $fs_type $device /boot
31
31
  if [ -f "/boot/config.pp" ]; then
32
32
  exit 0
@@ -1,3 +1,3 @@
1
1
  module SystemBuilder
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system-builder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 22
10
- version: 0.0.22
9
+ - 23
10
+ version: 0.0.23
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alban Peignier
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-07-24 00:00:00 Z
19
+ date: 2011-10-09 00:00:00 Z
20
20
  dependencies: []
21
21
 
22
22
  description: ""