diff options
author | Erich Eckner <git@eckner.net> | 2017-07-04 08:40:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-07-04 08:40:58 +0200 |
commit | 7cf95815d55c0550566714e8359ee486dec5f884 (patch) | |
tree | 36d07bbccc96ebf478067640dc376aa2703a60e4 | |
parent | bb8c32133bd2d6a5ddf7efcab2ee0f0f2ac2c29a (diff) | |
download | builder-7cf95815d55c0550566714e8359ee486dec5f884.tar.xz |
bin/common-functions, bin/db-update: use tempdir outside of tmpfs
-rwxr-xr-x | bin/common-functions | 2 | ||||
-rwxr-xr-x | bin/db-update | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/common-functions b/bin/common-functions index 9c148a5..3146572 100755 --- a/bin/common-functions +++ b/bin/common-functions @@ -364,7 +364,7 @@ make_source_info() { exit ${err} } - overlays_dir="$(mktemp -d)" + overlays_dir="$(mktemp -d "${work_dir}/tmp.XXXXXX")" sudo mount -t tmpfs none "${overlays_dir}" || \ bail_out diff --git a/bin/db-update b/bin/db-update index 07da1f9..e1e785a 100755 --- a/bin/db-update +++ b/bin/db-update @@ -396,7 +396,7 @@ if ! flock ${block_flag} 8; then exit 1 fi -tmp_dir="$(mktemp -d)" +tmp_dir="$(mktemp -d "${work_dir}/tmp.XXXXXX")" clean_up_lock_file() { rm -f "${package_database_lock_file}" "${build_list_lock_file}" |