Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] image_types.bbclass: fix link creation failure if the target already exists
@ 2012-02-29 20:33 Petr Štetiar
  2012-03-01 15:50 ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Štetiar @ 2012-02-29 20:33 UTC (permalink / raw)
  To: openembedded-core

| 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@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




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-02 22:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 20:33 [PATCH] image_types.bbclass: fix link creation failure if the target already exists Petr Štetiar
2012-03-01 15:50 ` Richard Purdie
2012-03-02 12:29   ` Andreas Müller
2012-03-02 12:38     ` Richard Purdie
2012-03-02 12:48       ` Andreas Müller
2012-03-02 13:20         ` Richard Purdie
2012-03-02 22:01           ` Petr Štetiar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox