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

Clone support #233

Closed
wants to merge 2 commits into from
Closed

Clone support #233

wants to merge 2 commits into from

Conversation

ccope
Copy link
Contributor

@ccope ccope commented Mar 1, 2014

This code works for me on Ubuntu 12.04 and 13.10 with LVM, with the exception of shared folders. I'm working on a commit for that this weekend. This should work for btrfs and others as well.

@ccope
Copy link
Contributor Author

ccope commented Mar 1, 2014

This also covers #232

@@ -66,6 +68,13 @@ def create(template, config_file, template_opts = {})
end
end

def clone(existing_container_name, name)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need the name parameter here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good point, I'll clean that up.

@mowings
Copy link

mowings commented Mar 1, 2014

I like the explicit clone approach here. Seems maybe less treacherous than trying build transparent cloning support into the basic create functionality. We're using btrfs here -- I'll merge this into my fork and give it a try this week.

@fgrehm fgrehm closed this Mar 5, 2014
@mowings
Copy link

mowings commented Mar 5, 2014

So this seems to work nicely under btrfs.

@fgrehm
Copy link
Owner

fgrehm commented Mar 5, 2014

Damn, GitHub automagically closed the PR because I deleted the referenced branch =/

@ccope would you mind opening a new PR so we can continue the discussion? Thanks in advance!

@ccope ccope mentioned this pull request Mar 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants