1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

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

This commit is contained in:
Jan Orel 2021-04-29 17:53:46 +02:00 committed by GitHub
parent cbd12bb0c4
commit f5d4d8ba07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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