gnomeos: local-clone into built image

This way we have the whole history in the image, and we can start
to demo things like switching roots, pulling etc.
This commit is contained in:
Colin Walters 2011-11-19 10:52:17 -05:00
parent dce29a984a
commit 79eb682cda
1 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,10 @@ if (! test -f ${OBJ}); then
mkdir -p -m 0755 ./ostree/var/{log,run,tmp,spool}
cd ostree
mkdir repo
rev=$(ostree --repo=${OSTREE_REPO} rev-parse gnomeos-base);
ostree --repo=${OSTREE_REPO} checkout ${rev} gnomeos-base-${rev}
ostree --repo=repo init
ostree --repo=${OSTREE_REPO} local-clone repo
rev=$(ostree --repo=repo rev-parse gnomeos-base);
ostree --repo=repo checkout ${rev} gnomeos-base-${rev}
ln -s gnomeos-base-${rev} current
cd ..