rubber 1.13.1 → 1.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/VERSION +1 -1
- data/lib/rubber/instance.rb +1 -1
- data/lib/rubber/recipes/rubber/volumes.rb +9 -4
- metadata +2 -2
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.13.
|
1
|
+
1.13.2
|
data/lib/rubber/instance.rb
CHANGED
@@ -124,9 +124,14 @@ namespace :rubber do
|
|
124
124
|
fi
|
125
125
|
mv /etc/fstab /etc/fstab.bak
|
126
126
|
cat /etc/fstab.bak | grep -v '#{vol_spec['mount']}' > /etc/fstab
|
127
|
-
|
128
|
-
|
129
|
-
|
127
|
+
if grep '11\.04' /etc/lsb-release; then
|
128
|
+
device=`echo #{vol_spec['device']} | sed 's/sd/xvd/'`
|
129
|
+
else
|
130
|
+
device='#{vol_spec['device']}'
|
131
|
+
fi
|
132
|
+
echo "$device #{vol_spec['mount']} #{vol_spec['filesystem']} noatime 0 0 # rubber volume #{vol_id}" >> /etc/fstab
|
133
|
+
|
134
|
+
#{('yes | mkfs -t ' + vol_spec['filesystem'] + ' ' + '$device') if created}
|
130
135
|
#{("mkdir -p '#{vol_spec['mount']}'") if vol_spec['mount']}
|
131
136
|
#{("mount '#{vol_spec['mount']}'") if vol_spec['mount']}
|
132
137
|
fi
|
@@ -157,7 +162,7 @@ namespace :rubber do
|
|
157
162
|
fi
|
158
163
|
|
159
164
|
# partition format is: Start (blank is first available),Size(MB due to -uM),Id(83=linux,82=swap,etc),Bootable
|
160
|
-
|
165
|
+
echo "#{partition_spec['start']},#{partition_spec['size']},#{partition_spec['type']},#{partition_spec['bootable']}" | sfdisk -L -uM #{partition_spec['disk_device']}
|
161
166
|
fi
|
162
167
|
ENDSCRIPT
|
163
168
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rubber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.13.
|
5
|
+
version: 1.13.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matt Conway
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-23 00:00:00 -04:00
|
14
14
|
default_executable: vulcanize
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|