summaryrefslogtreecommitdiff
path: root/baserock-bootstrap
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-04 09:33:03 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-04 09:44:38 +0100
commit7e675cc340eba95a34b2061a09f429266758815c (patch)
tree4808c727f0d26cdfb943d487a961dc15139185e6 /baserock-bootstrap
parent138a215fe6472cef0666a08ff864783dd1e46059 (diff)
downloadmorph-7e675cc340eba95a34b2061a09f429266758815c.tar.gz
baserock-bootstrap: fix path for staging filler
The changes to the cache directory layout meant that this failed to find the strata. This also fixes it extracting both pass1 and pass2's strata.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-xbaserock-bootstrap12
1 files changed, 5 insertions, 7 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap
index b1cb991f..c964978c 100755
--- a/baserock-bootstrap
+++ b/baserock-bootstrap
@@ -306,7 +306,7 @@ pass2b_cleanup_at_end()
{
echo "Remove unnecessary stuff at the end of pass2b"
rm -rf "$LFS/tools"
- rm -f "$LFS"/baserock/cache/*.chunk.*
+ rm -f "$LFS"/baserock/cache/artifacts/*.chunk.*
}
@@ -324,10 +324,9 @@ pass3_get_sources_with_morph_in_chroot()
# but the cached chunks may be invalid, so
# move them away
cd "$LFS/baserock/gits/morph"
- if [ ! -e "$LFS/baserock/cache.pass2" ]; then
- mv "$LFS/baserock/cache" "$LFS/baserock/cache.pass2"
- mkdir -p "$LFS/baserock/cache"
- mv "$LFS/baserock/cache.pass2/gits" "$LFS/baserock/cache/gits"
+ if [ ! -e "$LFS/baserock/pass2-artifacts" ]; then
+ mv "$LFS/baserock/cache/artifacts" "$LFS/baserock/pass2-artifacts"
+ mkdir -p "$LFS/baserock/cache/artifacts"
fi
cat <<EOF > "$LFS/baserock/build.sh"
@@ -390,8 +389,7 @@ python ./morph --verbose build \
morphs master devel.morph \
morphs master $BSP_STRATUM \
--staging-chroot \
- $(for x in $LFS/baserock/cache.pass2/*.stratum.*; \
- do echo -n "--staging-filler=\"$x\" "; done) \
+ --staging-filler="$LFS/baserock/pass2-artifacts/"*.stratum.bootstrap-pass2 \
--no-git-update \
--cachedir=/baserock/cache \
--log=/baserock/morph.log \