Commit a9debc77 authored by kpcyrd's avatar kpcyrd Committed by Holger Levsen

reproducible alpine: add path prefix to LATEST_MINIROOT

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 439af034
...@@ -29,13 +29,13 @@ bootstrap() { ...@@ -29,13 +29,13 @@ bootstrap() {
exit 1 exit 1
fi fi
rm -f "$LATEST_MINIROOT" rm -f "./$LATEST_MINIROOT"
echo "$(date -u) - downloading alpine minirootfs" echo "$(date -u) - downloading alpine minirootfs"
curl -fO "$ALPINE_MIRROR/$LATEST_MINIROOT" curl -fO "$ALPINE_MIRROR/$LATEST_MINIROOT"
echo "$(date -u) - extracting alpine minirootfs" echo "$(date -u) - extracting alpine minirootfs"
sudo tar xzf "$LATEST_MINIROOT" -C "$SCHROOT_BASE/$TARGET.new" sudo tar xzf "./$LATEST_MINIROOT" -C "$SCHROOT_BASE/$TARGET.new"
if [ -d "$SCHROOT_BASE/$TARGET" ]; then if [ -d "$SCHROOT_BASE/$TARGET" ]; then
mv "$SCHROOT_BASE/$TARGET" "$SCHROOT_BASE/$TARGET.old" mv "$SCHROOT_BASE/$TARGET" "$SCHROOT_BASE/$TARGET.old"
...@@ -43,7 +43,7 @@ bootstrap() { ...@@ -43,7 +43,7 @@ bootstrap() {
fi fi
mv "$SCHROOT_BASE/$TARGET.new" "$SCHROOT_BASE/$TARGET" mv "$SCHROOT_BASE/$TARGET.new" "$SCHROOT_BASE/$TARGET"
rm -f "$LATEST_MINIROOT" rm -f "./$LATEST_MINIROOT"
# write the schroot config # write the schroot config
echo "$(date -u ) - writing schroot configuration for $TARGET." echo "$(date -u ) - writing schroot configuration for $TARGET."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment