summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-06-14 10:12:57 +0200
committerSimon Rettberg2024-06-14 10:12:57 +0200
commit6f7e437cf5f257a29f7b48fadb52c322561c16eb (patch)
tree5ec8fa4ff86b588a5e06ae3edeca92389ab361c9
parent[slx-dmsetup] Fix braindead mktemp call by removing it (diff)
downloadsystemd-init-6f7e437cf5f257a29f7b48fadb52c322561c16eb.tar.gz
systemd-init-6f7e437cf5f257a29f7b48fadb52c322561c16eb.tar.xz
systemd-init-6f7e437cf5f257a29f7b48fadb52c322561c16eb.zip
[slx-dmsetup] Fix another busybox mktemp call
-rwxr-xr-xmodules.d/slx-dmsetup/hooks/dmsetup-slx-device2
1 files changed, 1 insertions, 1 deletions
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" )"