summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/block.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/block.sh b/lib/block.sh
index 7060690..e25b4e7 100644
--- a/lib/block.sh
+++ b/lib/block.sh
@@ -22,6 +22,7 @@
_BLOCK_SM=1
use rand
+use vardata
is_block()
{
@@ -41,8 +42,7 @@ block_mount()
fi
rand
- # FIXME: Hardcoded tmpdir
- dir="/tmp/prokit-block-$(printf '%010d' ${rand_x})"
+ dir="$(get_vardata_dir 'mount')/block-$(printf '%010d' ${rand_x})"
if ! mkdir "${dir}"; then
error 2 "$(get_msg 'block_mkdir_fail' "${dir}")"
fi