diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index 01d54fe..bafed55 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -50,20 +50,20 @@ module Vagrant end def rootfs_path - config_entry = config_string.match(/^lxc\.rootfs\s+=\s+(.+)$/)[1] - case config_entry - when /^overlayfs:/ + pathtype, path = config_string.match(/^lxc\.rootfs(?:\.path)?\s+=\s+(.+:)?(.+)$/)[1..2] + case pathtype + 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(/(?