From: jiankang.fan Date: Thu, 4 Feb 2016 09:20:52 +0000 (+0800) Subject: fix bug for error : run-init: /.build/build: No such file or directory X-Git-Tag: upstream/20160629~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a076d68fea1e1b1714d0735cc9eabd3ec97fc0d;p=tools%2Fbuild.git fix bug for error : run-init: /.build/build: No such file or directory need to change to BUILD_ROOT dir Change-Id: Ia47582cb40ac7d5d9ef36004305ad06a5d40f3e8 Signed-off-by: jiankang.fan --- diff --git a/init_buildsystem b/init_buildsystem index 8907342..4ceffda 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -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