[ostree] gnomeos: Switch to using pseudo for commits
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] gnomeos: Switch to using pseudo for commits
- Date: Mon, 28 Nov 2011 01:44:38 +0000 (UTC)
commit 3f0866dc7939b42ec7dec13e6bf593da0f2c1a03
Author: Colin Walters <walters verbum org>
Date: Sun Nov 27 20:43:44 2011 -0500
gnomeos: Switch to using pseudo for commits
This is noticeably faster.
One side effect here is that xattrs are empty, which is actually
a good thing.
gnomeos/yocto/commit-yocto-build.sh | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gnomeos/yocto/commit-yocto-build.sh b/gnomeos/yocto/commit-yocto-build.sh
index 64b988f..99585b8 100755
--- a/gnomeos/yocto/commit-yocto-build.sh
+++ b/gnomeos/yocto/commit-yocto-build.sh
@@ -1,3 +1,4 @@
+#!/bin/bash
# Copyright (C) 2011 Colin Walters <walters verbum org>
#
@@ -31,6 +32,11 @@ 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
@@ -40,7 +46,7 @@ tempdir=`mktemp -d tmp-commit-yocto-build.XXXXXXXXXX`
cd $tempdir
mkdir fs
cd fs
-fakeroot -s ../fakeroot.db tar xf $BUILD_TAR
-fakeroot -i ../fakeroot.db ostree --repo=${OSTREE_REPO} commit -s "Build from OSTree ${OSTREE_VER}" -b "gnomeos-yocto-$ARCH-$BRANCH"
+$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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]