summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-08-26 12:39:07 +0800
committerJoshua Lock <josh@linux.intel.com>2010-08-26 08:54:55 +0100
commit8ea7fa6d4c7734da6034d44f8b6d78d2993f1949 (patch)
treed0be459748627b653337548837be820c529a8117 /meta/classes/rootfs_rpm.bbclass
parentd46c362a46f26b38d8da30f6a83e7c0fdadda348 (diff)
downloadpoky-8ea7fa6d4c7734da6034d44f8b6d78d2993f1949.tar.gz
opkg: finalize the change to var directory
commit 1d0757f16beb31551733d9d755d72337ccda9642 changes opkg run state from /usr/lib/opkg to /var/lib/opkg, which however is incomplete and still many important information is kept under old directory including postinst methods. This makes latest boot into a mess. So finalize this movement to /var here. Fix [BUGID #229] Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r--meta/classes/rootfs_rpm.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 9c681f382b..9cbfdd3db3 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -20,6 +20,8 @@ AWKPOSTINSTSCRIPT = "${POKYBASE}/scripts/rootfs_rpm-extract-postinst.awk"
20RPM_PREPROCESS_COMMANDS = "package_update_index_rpm; package_generate_rpm_conf" 20RPM_PREPROCESS_COMMANDS = "package_update_index_rpm; package_generate_rpm_conf"
21RPM_POSTPROCESS_COMMANDS = "" 21RPM_POSTPROCESS_COMMANDS = ""
22 22
23opkglibdir = "${localstatedir}/lib/opkg"
24
23fakeroot rootfs_rpm_do_rootfs () { 25fakeroot rootfs_rpm_do_rootfs () {
24 set +x 26 set +x
25 27
@@ -164,7 +166,7 @@ rootfs_rpm_log_check() {
164 166
165remove_packaging_data_files() { 167remove_packaging_data_files() {
166 exit 1 168 exit 1
167 rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ 169 rm -rf ${IMAGE_ROOTFS}${opkglibdir}
168} 170}
169 171
170install_all_locales() { 172install_all_locales() {
@@ -172,7 +174,7 @@ install_all_locales() {
172 174
173 PACKAGES_TO_INSTALL="" 175 PACKAGES_TO_INSTALL=""
174 176
175 INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` 177 INSTALLED_PACKAGES=`grep ^Package: ${IMAGE_ROOTFS}${opkglibdir}/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"`
176 178
177 for pkg in $INSTALLED_PACKAGES 179 for pkg in $INSTALLED_PACKAGES
178 do 180 do