From: Adrian Schröter Date: Thu, 5 Mar 2009 08:23:35 +0000 (+0000) Subject: * Fix extraction of root.tar* X-Git-Tag: obs_2.0~253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4121d310169a5e418aab420003d783b8cb2d1baf;p=tools%2Fobs-build.git * Fix extraction of root.tar* * Fix permissions of kiwi source script files --- diff --git a/build b/build index 58c8b24..b3a15fa 100755 --- a/build +++ b/build @@ -1356,6 +1356,14 @@ for SPECFILE in "${SPECFILES[@]}" ; do done ) fi + # unpack root tar + for t in $BUILD_ROOT/$TOPDIR/SOURCES/root.tar* ; do + test -f $t || continue + mkdir -p $BUILD_ROOT/$TOPDIR/SOURCES/root + chroot $BUILD_ROOT tar -C $TOPDIR/SOURCES/root -xf "$TOPDIR/SOURCES/${t##*/}" + done + # fix script permissions + chmod a+x $BUILD_ROOT/$TOPDIR/SOURCES/*.sh # unpack tar files in image directories if test -d $BUILD_ROOT/$TOPDIR/SOURCES/images ; then ( @@ -1366,8 +1374,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do for t in $r/root.tar* ; do test -f $t || continue mkdir -p $r/root - chroot $BUILD_ROOT tar -C $TOPDIR/SOURCES/images/$r/root -xf "$TOPDIR/SOURCES/images/$r/$t{##*/}" + chroot $BUILD_ROOT tar -C $TOPDIR/SOURCES/images/$r/root -xf "$TOPDIR/SOURCES/images/$r/${t##*/}" done + # fix script permissions + chmod a+x $BUILD_ROOT/$TOPDIR/SOURCES/images/$r/*.sh # create compatibility link rc="${r//:/:/}" if test "$rc" != "$r" ; then