summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Wuensche <cryx-freebsd@h3q.com>2019-08-15 09:57:23 +0200
committerPhilipp Wuensche <cryx-freebsd@h3q.com>2019-08-15 09:57:23 +0200
commitbc503ac02358b514b605f92110a913e36055a50b (patch)
tree89cb98e9c25455d69a29143a5a903a0902c43275
parent8669dbddb5eaf6310a0f7adf6149abc5c4d301b6 (diff)
create and remove ezjail install logs inside the base jail, so it can be compared later against what is really there
-rwxr-xr-xezjail-admin3
1 files changed, 3 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 7396b28..a6514c1 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -285,7 +285,10 @@ ezjail_splitworld() {
285 # This mkdir is important, since cpio will create intermediate 285 # This mkdir is important, since cpio will create intermediate
286 # directories with permission 0700 which is bad 286 # directories with permission 0700 which is bad
287 mkdir -p "${ezjail_jailbase}/usr" 287 mkdir -p "${ezjail_jailbase}/usr"
288 # Remove any leftover ezjail install logs
289 rm -f ${ezjail_jailbase}/.ezjail.installlog
288 for dir in ${ezjail_dirlist}; do 290 for dir in ${ezjail_dirlist}; do
291 find ${dir} >> ${ezjail_jailbase}/.ezjail.installlog
289 find ${dir} | cpio -d -p -v ${ezjail_keep_basejail} "${ezjail_jailbase}" || exerr "Error: Installation of ${dir} failed." 292 find ${dir} | cpio -d -p -v ${ezjail_keep_basejail} "${ezjail_jailbase}" || exerr "Error: Installation of ${dir} failed."
290 chflags -R noschg ${dir}; rm -r ${dir}; ln -s /basejail/${dir} ${dir} 293 chflags -R noschg ${dir}; rm -r ${dir}; ln -s /basejail/${dir} ${dir}
291 done 294 done