mirror of
https://github.com/ostreedev/ostree.git
synced 2025-02-21 05:57:45 +03:00
gnomeos: commit-yocto-build.sh: Directly import tar files
Oh wow...this is fast.
This commit is contained in:
parent
78f435d245
commit
26de73ea55
@ -32,21 +32,9 @@ OSTREE_VER=$(cd $SCRIPT_SRCDIR && git describe)
|
||||
|
||||
BUILDDIR=$WORKDIR/tmp-eglibc
|
||||
|
||||
export PSEUDO_PREFIX=${BUILDDIR}/sysroots/$(uname -m)-linux
|
||||
export PSEUDO_BINDIR=${PSEUDO_PREFIX}/usr/bin
|
||||
export PSEUDO_LIBDIR=${PSEUDO_BINDIR}/../lib/pseudo/lib
|
||||
FAKEROOT=${PSEUDO_BINDIR}/pseudo
|
||||
|
||||
OSTREE_REPO=$WORKDIR/repo
|
||||
BUILD_TAR=$BUILDDIR/deploy/images/gnomeos-contents-$BRANCH-qemu${ARCH}.tar.gz
|
||||
|
||||
BUILD_TIME=$(date -r $BUILD_TAR)
|
||||
|
||||
tempdir=`mktemp -d tmp-commit-yocto-build.XXXXXXXXXX`
|
||||
cd $tempdir
|
||||
mkdir fs
|
||||
cd fs
|
||||
$FAKEROOT tar xf $BUILD_TAR
|
||||
$FAKEROOT ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH"
|
||||
cd "${WORKDIR}"
|
||||
rm -rf $tempdir
|
||||
ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH" --tar ${BUILD_TAR}
|
||||
|
Loading…
x
Reference in New Issue
Block a user