From a6a5c385eb1ea493b9a8fb1632bf24fd8d9cda18 Mon Sep 17 00:00:00 2001 From: Andreas Florath Date: Fri, 3 Jun 2016 07:21:03 +0200 Subject: [PATCH] Refactor: rename temporary directories The temporary directories for image creation and building the OS both started with 'image' as their names followed by some random characters. During debugging this is annoying, because on first sight it is not clear, where which files are stored. This patch renames them to dib_build.XXXXXXXX and dib_image.XXXXXXXX. This patch introduces no user-visible change: the temporary directories are only used during the run of disk-image-builder. Change-Id: I249cdb7750fe9a746b375b462789cd9b82681a2e Signed-off-by: Andreas Florath --- lib/common-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common-functions b/lib/common-functions index 97305d60..b81d6039 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -30,8 +30,8 @@ function tmpfs_check() { } function mk_build_dir () { - TMP_BUILD_DIR=$(mktemp -t -d --tmpdir=${TMP_DIR:-/tmp} image.XXXXXXXX) - TMP_IMAGE_DIR=$(mktemp -t -d --tmpdir=${TMP_DIR:-/tmp} image.XXXXXXXX) + TMP_BUILD_DIR=$(mktemp -t -d --tmpdir=${TMP_DIR:-/tmp} dib_build.XXXXXXXX) + TMP_IMAGE_DIR=$(mktemp -t -d --tmpdir=${TMP_DIR:-/tmp} dib_image.XXXXXXXX) [ $? -eq 0 ] || die "Failed to create tmp directory" export TMP_BUILD_DIR if tmpfs_check ; then