dock0 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dock0.gemspec +1 -1
- data/lib/dock0.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4439d5d2c91d54d23d03c34de960605c78a48c45
|
4
|
+
data.tar.gz: d95afb28e10ac477ac9d45574101ae3590ca5045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f2c5453a823e150bc70aacee58f4ed8c25f486142c82beee41535f952e0adb4897a0ae69ced012f02cc7b594d3c58e1fc633fa582f2408ee516671bb7c4876c
|
7
|
+
data.tar.gz: c9d2147e6a54dddfef70257db3389e079d4e79ce03f8451a9b5ee4a929668365d6614057f29fc7ca01de409007c8eee22a06bc853a9792a298e3f4500b2c8a6b
|
data/dock0.gemspec
CHANGED
data/lib/dock0.rb
CHANGED
@@ -26,7 +26,11 @@ module Dock0
|
|
26
26
|
'overlay' => './overlay',
|
27
27
|
'scripts' => './scripts'
|
28
28
|
},
|
29
|
-
'root_size' => 512
|
29
|
+
'root_size' => 512,
|
30
|
+
'fs' => {
|
31
|
+
'type' => 'ext4',
|
32
|
+
'flags' => '-F'
|
33
|
+
}
|
30
34
|
}
|
31
35
|
|
32
36
|
##
|
@@ -57,9 +61,9 @@ module Dock0
|
|
57
61
|
end
|
58
62
|
|
59
63
|
def prepare_device
|
60
|
-
@config['root_type'] ||= 'ext4'
|
61
64
|
puts "Making new filesystem on #{@config['paths']['device']}"
|
62
|
-
|
65
|
+
mkfs = "mkfs.#{@config['fs']['type']} #{@config['fs']['flags']}"
|
66
|
+
run "#{mkfs} #{@config['paths']['device']}"
|
63
67
|
puts "Mounting filesystem on #{@config['paths']['mount']}"
|
64
68
|
FileUtils.mkdir_p @config['paths']['mount']
|
65
69
|
run "mount #{@config['paths']['device']} #{@config['paths']['mount']}"
|