From 95e7775c2dda6ec880e0b82eca10e2841f88c227 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 10 Nov 2011 08:32:55 -0500 Subject: [PATCH] parallel: Ensure we have some crucial subdirectories of /var Also move sysroot creation up a step - each commit is kind of expensive at present. --- parallel-debian/gnomeos-make-image.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/parallel-debian/gnomeos-make-image.sh b/parallel-debian/gnomeos-make-image.sh index 101734f8..a3073490 100755 --- a/parallel-debian/gnomeos-make-image.sh +++ b/parallel-debian/gnomeos-make-image.sh @@ -104,7 +104,7 @@ if ! test -d ${OBJ}; then mkdir ostree - mkdir -m 0755 ostree/var + mkdir -p -m 0755 ostree/var/{log,run} mkdir ostree/repo @@ -114,7 +114,7 @@ if ! test -d ${OBJ}; then mkdir ostree/worktree cd ostree/worktree - mkdir -m 0755 $INITRD_MOVE_MOUNTS $TOPROOT_BIND_MOUNTS $OSTREE_BIND_MOUNTS $READONLY_BIND_MOUNTS $MOVE_MOUNTS + mkdir -m 0755 $INITRD_MOVE_MOUNTS $TOPROOT_BIND_MOUNTS $OSTREE_BIND_MOUNTS $READONLY_BIND_MOUNTS $MOVE_MOUNTS sysroot chmod a=rwxt tmp $OSTREE --repo=../repo commit -b gnomeos-filesystem -s "Base filesystem layout" BRANCHES="$BRANCHES gnomeos-filesystem" @@ -168,10 +168,6 @@ if ! test -d ${OBJ}; then rm worktree/debian-setup.sh cd worktree; $OSTREE --repo=../repo commit -b gnomeos -s "Run debian-setup.sh" - - # This is the name for the real rootfs, not the chroot - mkdir sysroot; - $OSTREE --repo=../repo commit -b gnomeos -s "Add sysroot" cd .. rm -rf worktree