diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index dbba577..c71b0b3 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -45,7 +45,21 @@ module Vagrant end def rootfs_path - Pathname.new(config_string.match(/^lxc\.rootfs\s+=\s+(.+)$/)[1]) + config_entry = config_string.match(/^lxc\.rootfs\s+=\s+(.+)$/)[1] + case config_entry + when /^overlayfs:/ + # Split on colon (:), ignoring any colon escaped by an escape character ( \ ) + # Pays attention to when the escape character is itself escaped. + fs_type, master_path, overlay_path = config_entry.split(/(?