]> code.ossystems Code Review - openembedded-core.git/commitdiff
image.bbclass: fix paths to run-postinsts
authorRoss Burton <ross.burton@intel.com>
Tue, 17 Dec 2013 10:55:06 +0000 (10:55 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jan 2014 00:48:27 +0000 (00:48 +0000)
The run-postinsts script has been moved to ${sbindir}.

[YOCTO #5719]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/image.bbclass

index 4c63bc28fd0b85e7694ec92336371cb080a94cf2..5049b3faa029b9288fa2431666ee46c7bbfedff5 100644 (file)
@@ -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