Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switched away from named subpatterns

They break compatibility with 1.8.7, which is what the vm uses for provisioning by default
  • Loading branch information...
commit bbb42512c057ef6a0fa524b97bfef368d5a39132 1 parent 273bfdf
Ian Baker & Ryan Spore authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 chef/warden/recipes/install_rootfs.rb
4 chef/warden/recipes/install_rootfs.rb
@@ -20,9 +20,9 @@
system "tar xvf #{WARDEN_STEMCELL_FILE} && tar xvf image"
system "echo '----> Mounting BOSH Stemcell'"
- loop = `kpartx -av root.img`.match /map\s+(?<loop>.+?)\s+/
+ loop = `kpartx -av root.img`.match /map\s+(.+?)\s+/
FileUtils.mkdir_p STEMCELL_MOUNT
- system "mount /dev/mapper/#{loop[:loop]} #{STEMCELL_MOUNT}"
+ system "mount /dev/mapper/#{loop[1]} #{STEMCELL_MOUNT}"
system "echo '----> Replacing standard Warden RootFS with BOSH Warden RootFS'"
FileUtils.rm_rf ROOT_FS if File.exist? ROOT_FS
Please sign in to comment.
Something went wrong with that request. Please try again.