summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-02-12 18:12:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-13 16:52:29 +0000
commit5bb362a0ba97687029b3aef76b7e789570a4d728 (patch)
tree40d753aa370df5ba3d793ca5943f91ae41916f91 /meta/classes/rootfs_ipk.bbclass
parent6cca7efa6f7b61523913eace3f44ca2235d4e9ac (diff)
downloadpoky-5bb362a0ba97687029b3aef76b7e789570a4d728.tar.gz
rootfs_(ipk|deb|rpm).bbclass: check package installation status after ROOTFS_POSTPROCESS_COMMAND
Since the intercept fall-back procedure will change the package installation status, do the checking after ROOTFS_POSTPROCESS_COMMAND ends. (From OE-Core rev: 414c3918baccc2166bba536c956eebaeb49aace3) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r--meta/classes/rootfs_ipk.bbclass13
1 files changed, 6 insertions, 7 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index fadec4d90d..135bb6026b 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -80,7 +80,12 @@ fakeroot rootfs_ipk_do_rootfs () {
80 80
81 ${OPKG_POSTPROCESS_COMMANDS} 81 ${OPKG_POSTPROCESS_COMMANDS}
82 ${ROOTFS_POSTINSTALL_COMMAND} 82 ${ROOTFS_POSTINSTALL_COMMAND}
83 83
84 install -d ${IMAGE_ROOTFS}/${sysconfdir}
85 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
86
87 ${ROOTFS_POSTPROCESS_COMMAND}
88
84 if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then 89 if ${@base_contains("IMAGE_FEATURES", "read-only-rootfs", "true", "false" ,d)}; then
85 if grep Status:.install.ok.unpacked ${STATUS}; then 90 if grep Status:.install.ok.unpacked ${STATUS}; then
86 bberror "Some packages could not be configured offline and rootfs is read-only." 91 bberror "Some packages could not be configured offline and rootfs is read-only."
@@ -88,11 +93,6 @@ fakeroot rootfs_ipk_do_rootfs () {
88 fi 93 fi
89 fi 94 fi
90 95
91 install -d ${IMAGE_ROOTFS}/${sysconfdir}
92 echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
93
94 ${ROOTFS_POSTPROCESS_COMMAND}
95
96 rm -f ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg/lists/* 96 rm -f ${IMAGE_ROOTFS}${OPKGLIBDIR}/opkg/lists/*
97 if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)}; then 97 if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)}; then
98 if ! grep Status:.install.ok.unpacked ${STATUS}; then 98 if ! grep Status:.install.ok.unpacked ${STATUS}; then
@@ -114,7 +114,6 @@ fakeroot rootfs_ipk_do_rootfs () {
114 remove_packaging_data_files 114 remove_packaging_data_files
115 fi 115 fi
116 fi 116 fi
117 set +x
118 log_check rootfs 117 log_check rootfs
119} 118}
120 119