From patchwork Wed Feb 29 20:33:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: image_types.bbclass: fix link creation failure if the target already exists Date: Wed, 29 Feb 2012 20:33:15 -0000 From: =?utf-8?b?UGV0ciDFoHRldGlhciA8eW5lenpAdHJ1ZS5jej4=?= X-Patchwork-Id: 22487 Message-Id: <1330547595-11631-1-git-send-email-ynezz@true.cz> To: openembedded-core@lists.openembedded.org | 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 --- 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 }