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 <andreas@florath.net>
This commit is contained in:
parent
38dcce0fc4
commit
a6a5c385eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user