summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2015-04-15 01:10:04 +0200
committerDirk Engling <erdgeist@erdgeist.org>2015-04-15 01:10:04 +0200
commit777cc292bf1f10859d5d233762672953f97e79c7 (patch)
treeea4ffcdf73578aeeedac23e6de53528321a2dd2b /ezjail-admin
parent9353a5e1cb460ad98d91e77221c3aedcc40673d2 (diff)
Remove mount point prefix from path
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin5
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 ########################