diff options
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin index 3e209b5..557273e 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -1282,11 +1282,14 @@ freeze) | |||
1282 | # Create the new frozen flavour's dir | 1282 | # Create the new frozen flavour's dir |
1283 | mkdir -p "${ezjail_flavours_dir}/${ezjail_flavour}" | 1283 | mkdir -p "${ezjail_flavours_dir}/${ezjail_flavour}" |
1284 | 1284 | ||
1285 | # Work relative to jails rootdir | ||
1286 | cd "${ezjail_rootdir}" | ||
1287 | |||
1285 | # Now list all files that have been added or modified | 1288 | # Now list all files that have been added or modified |
1286 | # TODO: This assumes no files have been deleted from when the jail was initially created. Safe assumption for now. | 1289 | # TODO: This assumes no files have been deleted from when the jail was initially created. Safe assumption for now. |
1287 | # TODO: This assumes no files have been renamed from when the jail was initially created. Not so sure. | 1290 | # TODO: This assumes no files have been renamed from when the jail was initially created. Not so sure. |
1288 | /sbin/zfs diff -H "${ezjail_parentzfs}/${ezjail_hostname}@_vanilla_newjail_" "${ezjail_parentzfs}/${ezjail_hostname}" | \ | 1291 | /sbin/zfs diff -H "${ezjail_parentzfs}/${ezjail_hostname}@_vanilla_newjail_" "${ezjail_parentzfs}/${ezjail_hostname}" | \ |
1289 | grep -E "^[M+]" | cut -f 2 | cpio -d -m -p -v "${ezjail_flavours_dir}/${ezjail_flavour}" | 1292 | grep -E "^[M+]" | cut -f 2 | sed -E s:"^${ezjail_rootdir}/?":: | cpio -d -m -p -v "${ezjail_flavours_dir}/${ezjail_flavour}" |
1290 | 1293 | ||
1291 | ;; | 1294 | ;; |
1292 | ######################## ezjail-admin SNAPSHOT ######################## | 1295 | ######################## ezjail-admin SNAPSHOT ######################## |