Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot clone from snapshot of jail #34

Open
Peter2121 opened this issue Oct 11, 2017 · 2 comments
Open

Cannot clone from snapshot of jail #34

Peter2121 opened this issue Oct 11, 2017 · 2 comments

Comments

@Peter2121
Copy link

Trying to clone a jail, using his snapshot as a source - I got this error:
# iocell clone nc1@2017-10-10 cannot open 'tanksys/iocell/jails/a448fe2c-8c97-11e7-9ccb-005056b04e67/root@3c44391a-ae95-11e7-9d92-005056b04e67': dataset does not exist
Probably, the problem is in __clone_jail function of ioc-zfs - creating a snapshot on line 746 with the ID as snapshot's name, later we always consider this name as a source, never using _snapshot got from the command line.

@Peter2121
Copy link
Author

BTW, it works in the old version of iocage, __clone_jail in ioc-zfs is not the same.

@Peter2121
Copy link
Author

I solved the problem, adding:
else zfs rename ${_dataset}/root@${_snapshot} ${uuid}
After the line 746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant