diff options
Diffstat (limited to 'modules.d/slx-dmsetup/hooks')
-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" )" |