From c6af4fab084cb1b920af513ef629d75745a152fc Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Thu, 6 Jun 2013 00:03:02 -0300 Subject: [PATCH] Lets ensure the rootfs is always set before starting the container --- lib/vagrant-lxc/driver.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/driver.rb b/lib/vagrant-lxc/driver.rb index c9ca4fe..fed94d5 100644 --- a/lib/vagrant-lxc/driver.rb +++ b/lib/vagrant-lxc/driver.rb @@ -30,7 +30,7 @@ module Vagrant end def rootfs_path - Pathname.new(base_path.join('config').read.match(/^lxc\.rootfs\s+=\s+(.+)$/)[1]) + Pathname.new(base_path.join('rootfs')) end def create(name, template_path, template_options = {}) @@ -65,6 +65,7 @@ module Vagrant extra = ['-o', ENV['LXC_START_LOG_FILE'], '-l', 'DEBUG'] end customizations = customizations + @customizations + customizations += [['rootfs', rootfs_path.to_s]] @cli.transition_to(:running) { |c| c.start(customizations, (extra || nil)) } end