[oe-commits] Ross Burton : image.bbclass: fix paths to run-postinsts

git at git.openembedded.org git at git.openembedded.org
Tue Jan 28 00:48:56 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 2c8dc1b00c0cf83da106ef9544cd11cde7ce43a1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2c8dc1b00c0cf83da106ef9544cd11cde7ce43a1

Author: Ross Burton <ross.burton at intel.com>
Date:   Tue Dec 17 10:55:06 2013 +0000

image.bbclass: fix paths to run-postinsts

The run-postinsts script has been moved to ${sbindir}.

[YOCTO #5719]

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/image.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 4c63bc2..5049b3f 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -531,7 +531,7 @@ rootfs_uninstall_unneeded () {
 			# All packages were successfully configured.
 			# update-rc.d, base-passwd, run-postinsts are no further use, remove them now
 			remove_run_postinsts=false
-			if [ -e ${IMAGE_ROOTFS}${sysconfdir}/init.d/run-postinsts ]; then
+			if [ -e ${IMAGE_ROOTFS}${sbindir}/run-postinsts ]; then
 				remove_run_postinsts=true
 			fi
 
@@ -555,7 +555,7 @@ rootfs_uninstall_unneeded () {
 			# Some packages were not successfully configured, save them only
 			# if we have run-postinsts script present. Otherwise, they're
 			# useless
-			if [ -e ${IMAGE_ROOTFS}${sysconfdir}/init.d/run-postinsts ]; then
+			if [ -e ${IMAGE_ROOTFS}${sbindir}/run-postinsts ]; then
 				save_postinsts
 			fi
 		fi



More information about the Openembedded-commits mailing list