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 +1 -1
- data/bin/box +3 -3
- data/lib/system_builder/mount_boot.sh +1 -1
- data/lib/system_builder/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
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("-
|
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.
|
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 -
|
107
|
+
sudo "mke2fs -L boot #{partition}"
|
108
108
|
end
|
109
109
|
|
110
110
|
sh "[ -d #{partition_mount_point} ]||mkdir #{partition_mount_point}"
|
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:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
19
|
+
date: 2011-10-09 00:00:00 Z
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description: ""
|