iocell
iocell copied to clipboard
Cannot clone from snapshot of jail
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.
BTW, it works in the old version of iocage, __clone_jail in ioc-zfs is not the same.
I solved the problem, adding:
else zfs rename ${_dataset}/root@${_snapshot} ${uuid}
After the line 746