Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Configuration attribute to allow passing additional arguments to lxc-create #232

Closed
mowings opened this issue Feb 28, 2014 · 2 comments
Closed

Comments

@mowings
Copy link

mowings commented Feb 28, 2014

We have a use case where we would like to create containers with btrfs (or possibly other) backing stores. The current implementation of lxc-create (well, as shipped with 13.10) requires that we be explicit by passing -B btrfs when creating a container, else rootfs is created as a simple directory, rather than a subvolume.

So it would be good to have a config option that allows passing additional arguments to lxc-create. For example:

inst.vm.provider :lxc do |lxc|
  lxc.create_extra_opts = ['-B', 'btrfs']
end

I'll add this into my fork -- if there's any interest I can send over a pr.

@fgrehm fgrehm added this to the v0.9.0 milestone Mar 1, 2014
@fgrehm
Copy link
Owner

fgrehm commented Mar 1, 2014

I like that, please send over the PR so I can include it on the next version of the plugin :) Thanks in advance

This was referenced Mar 1, 2014
@fgrehm fgrehm modified the milestones: v1.0.0, v0.9.0 Mar 7, 2014
@fgrehm
Copy link
Owner

fgrehm commented May 5, 2014

I'm not sure we still need this now that we have a config option for setting the backingstore since the only "useful" option that would be used would be the --lxcpath param that can be made a top level config as well if there's enough interest on it.

BUT, if you or someone else is up for sending a PR that exposes those "raw" parameters I'll look into merging it ;-)

@fgrehm fgrehm closed this as completed May 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants