[OE-core] [PATCH] image_types.bbclass: fix link creation failure if the target already exists
Petr Štetiar
ynezz at true.cz
Wed Feb 29 20:33:15 UTC 2012
| ln: failed to create symbolic link `beagleboard/systemd-image-beagleboard.tar.bz2': File exists
NOTE: package systemd-image-1.0-r0: task do_rootfs: Failed
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
meta/classes/image_types.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 5b48a09..adab573 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -61,7 +61,7 @@ runimagecmd () {
# And create the symlinks
if [ -n "${IMAGE_LINK_NAME}" ]; then
for type in ${subimages}; do
- ln -s ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
+ ln -fs ${IMAGE_NAME}.rootfs.$type ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.$type
done
fi
}
--
1.7.9
More information about the Openembedded-core
mailing list