1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #1345: Allow LUKS img in ceph DS (#1151)

(cherry picked from commit f5d4d8ba07416c7fedceb9938c7936d95e22bc1f)
This commit is contained in:
Jan Orel 2021-04-29 17:53:46 +02:00 committed by Ruben S. Montero
parent 6553d76c86
commit 1e20ad8f53
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -155,7 +155,7 @@ REGISTER_CMD=$(cat <<EOF
FORMAT=\$($QEMU_IMG info $TMP_DST | grep "^file format:" | awk '{print \$3}' || :)
if [ "\$FORMAT" != "raw" ]; then
if [ "\$FORMAT" != "raw" ] && [ "\$FORMAT" != "luks" ]; then
$QEMU_IMG convert -O raw $TMP_DST $TMP_DST.raw
mv $TMP_DST.raw $TMP_DST
fi