# HG changeset patch # User Paul Boddie # Date 1384297993 -3600 # Node ID 4099ffaa60ef32c68a14f20303fb7fe162b1cb76 # Parent 78a84f1ed2e5966298228353e4c23717d3cff72c Added some error handling around potential permission problems. diff -r 78a84f1ed2e5 -r 4099ffaa60ef uml-populate-image --- a/uml-populate-image Wed Nov 13 00:11:50 2013 +0100 +++ b/uml-populate-image Wed Nov 13 00:13:13 2013 +0100 @@ -38,6 +38,14 @@ THISDIR=`dirname "$0"` echo "Installing the package root..." 1>&2 +if ! touch "$PACKAGEROOT/root/tmp-uml-make-image" ; then + echo "The permissions for copying files from the package root into the image appear to be wrong." 1>&2 + echo "You may be accessing a root-owned package root and thus need to specify --root as an option." 1>&2 + exit 1 +else + rm "$PACKAGEROOT/root/tmp-uml-make-image" +fi + cp -a "$PACKAGEROOT/"* "$IMAGEDIR"/ if [ -h "$IMAGEDIR/dev" ]; then