iocell icon indicating copy to clipboard operation
iocell copied to clipboard

Cannot clone from snapshot of jail

Open Peter2121 opened this issue 7 years ago • 2 comments

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 avatar Oct 11 '17 15:10 Peter2121

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

Peter2121 avatar Oct 12 '17 09:10 Peter2121

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

Peter2121 avatar Oct 12 '17 13:10 Peter2121