From c1cb33429b3f7b66d2dc5940ac073f267baace88 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Mar 30 2017 05:27:08 +0000 Subject: Configurable work directory for chrooter --- diff --git a/chrooter/chrooter.sh b/chrooter/chrooter.sh index 17eebe7..3ed070d 100755 --- a/chrooter/chrooter.sh +++ b/chrooter/chrooter.sh @@ -11,7 +11,10 @@ INSTANCE_NAME="chrooter-$INSTANCE_NAME" PRIVILEGED= IMAGE_MOUNT_DIR= COMMAND_ERROR= -PREFIX="/tmp" +PREFIX="$CHROOTER_PREFIX" +if [ -z "$PREFIX" ]; then + PREFIX="/tmp" +fi image_mount_add() { echo "Mount: $1 -> $2"