summaryrefslogtreecommitdiffstats
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)
downloadpoky-436c5f4716bae47bf9ddddfe0cbaf595a3de46c7.tar.gz
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 55d2b920b6..411a6c4e71 100644
--- a/meta/classes/rootfs_deb.bbclass
+++ b/meta/classes/rootfs_deb.bbclass
@@ -81,12 +81,20 @@ fakeroot rootfs_deb_do_rootfs () {
81 if [ $? -ne 0 ]; then 81 if [ $? -ne 0 ]; then
82 exit 1 82 exit 1
83 fi 83 fi
84 find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do
85 mv $i `echo $i | sed -e's,\.dpkg-new$,,'`
86 done
87 done 84 done
88 fi 85 fi
89 86
87 rm ${WORKDIR}/temp/log.do_$target-attemptonly.${PID}
88 if [ ! -z "${PACKAGE_INSTALL_ATTEMPTONLY}" ]; then
89 for i in ${PACKAGE_INSTALL_ATTEMPTONLY}; do
90 apt-get install $i --force-yes --allow-unauthenticated >> ${WORKDIR}/temp/log.do_$target-attemptonly.${PID} || true
91 done
92 fi
93
94 find ${IMAGE_ROOTFS} -name \*.dpkg-new | for i in `cat`; do
95 mv $i `echo $i | sed -e's,\.dpkg-new$,,'`
96 done
97
90 install -d ${IMAGE_ROOTFS}/${sysconfdir} 98 install -d ${IMAGE_ROOTFS}/${sysconfdir}
91 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version 99 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
92 100