From 479523c139b62c1b2f84e334d3e2aa85cf15da24 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 9 Nov 2005 23:38:56 +0000 Subject: More sanity checks before and while making the jail world --- ezjail-admin | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ezjail-admin b/ezjail-admin index 4acb4c2..15c2a70 100755 --- a/ezjail-admin +++ b/ezjail-admin @@ -223,10 +223,20 @@ update) echo "Cannot find your copy of the FreeBSD source tree in $ezjail_sourcetree."; exit 1; fi + if [ ! -f ${ezjail_sourcetree}/Makefile ]; then + echo "Your source tree in $ezjail_sourcetree seems to be incomplete (Makefile missing)."; exit 1; + fi + cd ${ezjail_sourcetree} rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull} make ${updatejail_installaction} DESTDIR=${ezjail_jailfull} + if [ $? != 0 ]; then + echo "make ${updatejail_installaction} failed"; exit 1; + fi make distribution DESTDIR=${ezjail_jailfull} + if [ $? != 0 ]; then + echo "make distribution failed"; exit 1; + fi cd ${ezjail_jailfull} mkdir -p ${ezjail_jailbase}/usr ${ezjail_jailbase}/config/pkg -- cgit v1.2.3