From 3243103fb5974ab9e4933fe70d6895a479a0617f Mon Sep 17 00:00:00 2001 From: dancer Date: Fri, 22 Aug 2003 12:38:01 +0000 Subject: 0.83 + + * pbuilder-user-mode-linux: error out when COW file cannot be created. + (UML_DEBUGMODE): add --buildplace option. + + * pbuilder-user-mode-linux.1: update manual page since some + information are missing. + Add information on --buildplace option. + --- pbuilder-user-mode-linux | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pbuilder-user-mode-linux') diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index 5e80149..ee0b2b0 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -37,6 +37,10 @@ done function usecow () { PBUILDER_COWFILENAME="${BUILDPLACE}/$$.cow" PBUILDER_COW="${PBUILDER_COWFILENAME}," + if ! touch "${PBUILDER_COWFILENAME}"; then + echo "E: Cannot write-access to the COW file, check buildplace" + exit 1; + fi rm -f "${PBUILDER_COWFILENAME}" } @@ -208,7 +212,10 @@ while [ -n "$1" ] ; do --buildresult) # ignore buildresult UML_BUILDRESULT=$(readlink -f "$2") - shift;shift;; + shift; shift;; + --buildplace) + BUILDPLACE=$(readlink -f "$2") + shift; shift;; --logfile) exec > "$2"; exec 2>&1 -- cgit v1.2.3