fix bug for error : run-init: /.build/build: No such file or directory
authorjiankang.fan <jiankang.fan@samsung.com>
Thu, 4 Feb 2016 09:20:52 +0000 (17:20 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Wed, 8 Jun 2016 05:57:32 +0000 (14:57 +0900)
need to change to BUILD_ROOT dir

Change-Id: Ia47582cb40ac7d5d9ef36004305ad06a5d40f3e8
Signed-off-by: jiankang.fan <jiankang.fan@samsung.com>
init_buildsystem

index 8907342f195614bf59f84c5959e0d2efa271480c..4ceffda66ac2fb1341c0a206db09bc2e7ef0a6ff 100755 (executable)
@@ -255,6 +255,8 @@ preinstall()
 
 run_pkg_scripts()
 {
+    # need to change to $BUILD_ROOT
+    cd $BUILD_ROOT
     chroot $BUILD_ROOT /sbin/ldconfig 2>/dev/null
     for PKG in $PACKAGES_TO_RUNSCRIPTS ; do
        if test -e "$BUILD_ROOT/.init_b_cache/scripts/$PKG.pre" ; then