1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Force symlink creation in VM disk linkin to avoid failures in some scenarios

(cherry picked from commit 25f33af2e5)
This commit is contained in:
Tino Vazquez 2014-03-27 19:22:40 +01:00
parent 6a5de1f491
commit 05618fff9c

View File

@ -52,7 +52,7 @@ TARGET_DEV="/dev/$VG_NAME/$LV_NAME"
LINK_CMD=$(cat <<EOF
set -e
mkdir -p $DST_DIR
ln -s "$TARGET_DEV" "$DST_PATH"
ln -sf "$TARGET_DEV" "$DST_PATH"
EOF
)