1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

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

This commit is contained in:
Tino Vazquez 2014-03-27 19:22:40 +01:00
parent 0ef777431b
commit 25f33af2e5

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
)