diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index d318e0b..0544057 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -47,7 +47,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(/(?