diff options
author | Simon Rettberg | 2024-06-14 10:12:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-06-14 10:12:57 +0200 |
commit | 6f7e437cf5f257a29f7b48fadb52c322561c16eb (patch) | |
tree | 5ec8fa4ff86b588a5e06ae3edeca92389ab361c9 | |
parent | [slx-dmsetup] Fix braindead mktemp call by removing it (diff) | |
download | systemd-init-6f7e437cf5f257a29f7b48fadb52c322561c16eb.tar.gz systemd-init-6f7e437cf5f257a29f7b48fadb52c322561c16eb.tar.xz systemd-init-6f7e437cf5f257a29f7b48fadb52c322561c16eb.zip |
[slx-dmsetup] Fix another busybox mktemp call
-rwxr-xr-x | modules.d/slx-dmsetup/hooks/dmsetup-slx-device | 2 |
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" )" |