dock0 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/dock0.gemspec +1 -1
  3. data/lib/dock0.rb +7 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc3c138d043aef95e929af24a223f1f8fda053fb
4
- data.tar.gz: c5a36df9db1f32a153c88f13da36bd133acc4b13
3
+ metadata.gz: 4439d5d2c91d54d23d03c34de960605c78a48c45
4
+ data.tar.gz: d95afb28e10ac477ac9d45574101ae3590ca5045
5
5
  SHA512:
6
- metadata.gz: 24b03c715aef619605556ff31762faa9cb851813457da44cf070e10c393cd2c1f963a3a41f11f1caf4b450e6076181028590d2922cf42de4d218b87951097e0f
7
- data.tar.gz: 7032ae88b26e973c2a7f30141c7110e11144e3050ec7c50f75f02bf1b8407d7acc2e2196d1e70e8958b27d736100589c19999eb76976845fe7e630b54f045340
6
+ metadata.gz: 1f2c5453a823e150bc70aacee58f4ed8c25f486142c82beee41535f952e0adb4897a0ae69ced012f02cc7b594d3c58e1fc633fa582f2408ee516671bb7c4876c
7
+ data.tar.gz: c9d2147e6a54dddfef70257db3389e079d4e79ce03f8451a9b5ee4a929668365d6614057f29fc7ca01de409007c8eee22a06bc853a9792a298e3f4500b2c8a6b
data/dock0.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'dock0'
3
- s.version = '0.0.11'
3
+ s.version = '0.0.12'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Builds a read-only Arch host for Docker'
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
- run "mkfs.#{@config['root_type']} -F #{@config['paths']['device']}"
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']}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dock0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker