From bc503ac02358b514b605f92110a913e36055a50b Mon Sep 17 00:00:00 2001 From: Philipp Wuensche Date: Thu, 15 Aug 2019 09:57:23 +0200 Subject: create and remove ezjail install logs inside the base jail, so it can be compared later against what is really there --- ezjail-admin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ezjail-admin b/ezjail-admin index 7396b28..a6514c1 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -285,7 +285,10 @@ ezjail_splitworld() { # This mkdir is important, since cpio will create intermediate # directories with permission 0700 which is bad mkdir -p "${ezjail_jailbase}/usr" + # Remove any leftover ezjail install logs + rm -f ${ezjail_jailbase}/.ezjail.installlog for dir in ${ezjail_dirlist}; do + find ${dir} >> ${ezjail_jailbase}/.ezjail.installlog find ${dir} | cpio -d -p -v ${ezjail_keep_basejail} "${ezjail_jailbase}" || exerr "Error: Installation of ${dir} failed." chflags -R noschg ${dir}; rm -r ${dir}; ln -s /basejail/${dir} ${dir} done -- cgit v1.2.3