summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rootfs_deb.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index 461b8bc93..533eaab4d 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -102,7 +102,9 @@ fakeroot rootfs_deb_do_rootfs () {
# Hacks to make dpkg/ipkg coexist for now
mv ${IMAGE_ROOTFS}/var/dpkg ${IMAGE_ROOTFS}/usr/
- rmdir ${IMAGE_ROOTFS}/usr/dpkg/alternatives
+ if [ -e ${IMAGE_ROOTFS}/usr/dpkg/alternatives ]; then
+ rmdir ${IMAGE_ROOTFS}/usr/dpkg/alternatives
+ fi
ln -s /usr/lib/ipkg/alternatives ${IMAGE_ROOTFS}/usr/dpkg/alternatives
ln -s /usr/dpkg/info ${IMAGE_ROOTFS}/usr/lib/ipkg/info
ln -s /usr/dpkg/status ${IMAGE_ROOTFS}/usr/lib/ipkg/status