bosh-stemcell 1.3173.0 → 1.3177.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bosh/stemcell/disk_image.rb +3 -1
- data/lib/bosh/stemcell/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39b41bcfe05b857dd20382a587de8efe518fc2ee
|
4
|
+
data.tar.gz: fb90f0436fe44db3f6f36b436613729ec730f7d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 836f0541b3cc1be6453defc76e2a3d73c20143b02846decb4db4d587b42293a9695da64c1466a80db9546abd300cfde637c86f66798db57378cf283d79a38233
|
7
|
+
data.tar.gz: 4b6a444c953eb800a43d239c7d2f5f16e773e988db86c10e42ee0b9f2ed3ed10d936a5ad85b87bacfabb02f2d6255e5baf6016bf996cb68a704f5040eb2225f5
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'bosh/core/shell'
|
2
|
+
require 'bosh/stemcell/arch'
|
2
3
|
require 'tmpdir'
|
3
4
|
|
4
5
|
module Bosh::Stemcell
|
@@ -18,6 +19,7 @@ module Bosh::Stemcell
|
|
18
19
|
mount_command = "sudo mount #{device_path} #{image_mount_point}"
|
19
20
|
shell.run(mount_command, output_command: verbose)
|
20
21
|
rescue => e
|
22
|
+
puts "Failed to mount with error #{e.inspect}"
|
21
23
|
raise e unless e.message.include?(mount_command)
|
22
24
|
|
23
25
|
sleep 0.5
|
@@ -50,7 +52,7 @@ module Bosh::Stemcell
|
|
50
52
|
|
51
53
|
def map_image
|
52
54
|
@device = shell.run("sudo losetup --show --find #{image_file_path}", output_command: verbose)
|
53
|
-
if
|
55
|
+
if Bosh::Stemcell::Arch.ppc64le?
|
54
56
|
# power8 guest images have a p1: PReP partition and p2: file system, we need loopp2 here
|
55
57
|
shell.run("sudo kpartx -av #{device} | grep \"^add\" | grep \"p2 \"", output_command: verbose)
|
56
58
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-stemcell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3177.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bosh_aws_cpi
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.3177.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.3177.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: fakefs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|