vagrant-persistent-storage 0.0.24 → 0.0.25

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e87d70296231d549440570164175aee787cb126e
4
- data.tar.gz: e1b0bb5eca27c70e5d8b25f2f7dd29fa5e448ff5
3
+ metadata.gz: 21405e2eb2912b0642f94759643201d622d115ab
4
+ data.tar.gz: c04c8ddbcd85e6559930896b7ab9e9fcfb33b765
5
5
  SHA512:
6
- metadata.gz: 4dc4b2a63998f2d8818f9ac92764639be1f7de9f98b88005f8f97fb4cd4d096a1351237a2d583de4b5cd7d0056f6341c516c45bb3fe4f666ffe4b664f632bfc7
7
- data.tar.gz: a5c9d6b5528f6de18e5ebe51782b32078cb3c2ff8d087248df9dbc69d7a9a2837a4c6401f54ce5f8d8053a614fec2d944333595f5ca61424f07e8442f809709e
6
+ metadata.gz: 979f73c50dcd96e9494e91f25a583f06828d411deb74ddc7a9bd8042fe1839b0c17c815cc8f136d6a54207efb4e11ef33fccd180fa3ee7c6b3f9dc3a055fdd28
7
+ data.tar.gz: 300deb039566490ec45e874a9b902f6f39f7b739665fd127b294033ed24ac61c89166af400be7663784578993e3b489b171bbaf4bb6bc00aaf4d6ce2a8f12a80
data/README.md CHANGED
@@ -33,7 +33,10 @@ config.persistent_storage.mountpoint = '/mnt/xfs'
33
33
  config.persistent_storage.mountoptions = ['defaults', 'prjquota']
34
34
  ```
35
35
 
36
- Device defaults to /dev/sdb
36
+ Device defaults to `/dev/sdb`. For boxes with multiple disks, make sure you increment the drive:
37
+ ```
38
+ config.persistent_storage.diskdevice = '/dev/sdc'
39
+ ```
37
40
 
38
41
  Every `vagrant up` will attach this file as hard disk to the guest machine.
39
42
  An `vagrant destroy` will detach the storage to avoid deletion of the storage by vagrant.
@@ -78,6 +81,7 @@ If your box are not using LVM you must set `config.persistent_storage.use_lvm =
78
81
  * [Lars Hupfeldt Nielsen](https://github.com/lhupfeldt)
79
82
  * [Chen Yu Pao](https://github.com/windperson)
80
83
  * [Kris Reese](https://github.com/ktreese)
84
+ * [Henry N.](https://github.com/HenryNe)
81
85
 
82
86
  ## TODO
83
87
 
@@ -58,7 +58,7 @@ module VagrantPlugins
58
58
  disk_operations_template = ERB.new <<-EOF
59
59
  #!/bin/bash
60
60
  # fdisk the disk if it's not a block device already:
61
- [[ $("sfdisk" --version) =~ ([0-9][.][0-9.]*[0-9.]*) ]] && version="${BASH_REMATCH[1]}"
61
+ re='[0-9][.][0-9.]*[0-9.]*'; [[ $(sfdisk --version) =~ $re ]] && version="${BASH_REMATCH}"
62
62
  if ! awk -v ver="$version" 'BEGIN { if (ver < 2.26 ) exit 1; }'; then
63
63
  [ -b #{disk_dev}1 ] || echo 0,,8e | sfdisk #{disk_dev}
64
64
  else
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module PersistentStorage
3
- VERSION = "0.0.24"
3
+ VERSION = "0.0.25"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-persistent-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Kusnier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-23 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake