summaryrefslogtreecommitdiff
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-11-06 16:23:32 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-11-06 16:23:32 +0000
commit436c5f4716bae47bf9ddddfe0cbaf595a3de46c7 (patch)
treef4f9a76d581903d2b62f58b490996552ed47d9e4 /meta/classes/rootfs_deb.bbclass
parent1e967ea93ee425dfca6857ec958e9a55160133ac (diff)
downloadopenembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.gz
openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.bz2
openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.xz
openembedded-core-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.zip
classes: Add mechanism to install packages into images only if they've been built
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r--meta/classes/rootfs_deb.bbclass14
1 files changed, 11 insertions, 3 deletions
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass
index 55d2b920b..411a6c4e7 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -81,12 +81,20 @@ fakeroot rootfs_deb_do_rootfs () {
if [ $? -ne 0 ]; then
exit 1
fi
- find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do
- mv $i `echo $i | sed -e's,\.dpkg-new$,,'`
- done
done
fi
+ rm ${WORKDIR}/temp/log.do_$target-attemptonly.${PID}
+ if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then
+ for i in ${PACKAGE_INSTALL_ATTEMPTONLY}; do
+ apt-get install $i --force-yes --allow-unauthenticated >> ${WORKDIR}/temp/log.do_$target-attemptonly.${PID} || true
+ done
+ fi
+
+ find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do
+ mv $i `echo $i | sed -e's,\.dpkg-new$,,'`
+ done
+
install -d ${IMAGE_ROOTFS}/${sysconfdir}
echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version