Lets ensure the rootfs is always set before starting the container
This commit is contained in:
parent
663ff1fc0d
commit
c6af4fab08
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue