From 6f7e437cf5f257a29f7b48fadb52c322561c16eb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 14 Jun 2024 10:12:57 +0200 Subject: [slx-dmsetup] Fix another busybox mktemp call --- modules.d/slx-dmsetup/hooks/dmsetup-slx-device | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/slx-dmsetup/hooks/dmsetup-slx-device b/modules.d/slx-dmsetup/hooks/dmsetup-slx-device index 4c41af4b..cf220f8d 100755 --- a/modules.d/slx-dmsetup/hooks/dmsetup-slx-device +++ b/modules.d/slx-dmsetup/hooks/dmsetup-slx-device @@ -387,7 +387,7 @@ create_pool() { fi if [ -z "$metadata_dev" ]; then # create RAMdisk in /run for metadata device - metadata_dev="$(mktemp -p /run/openslx .pool-metadata.XXX)" + metadata_dev="$( mktemp /run/openslx/.pool-metadata.XXXXX )" # Create sparse file of required size dd if=/dev/null of="$metadata_dev" bs=512 seek="$metadata_dev_sz" 2> /dev/null declare -r metadata_dev="$( losetup --show --find "$metadata_dev" )" -- cgit v1.2.3-55-g7522