Skip to content

Commit

Permalink
Disable LOCAL_MIROR & BUILD_OVERLAY for now
Browse files Browse the repository at this point in the history
  • Loading branch information
petefoth committed Sep 5, 2024
1 parent 498db88 commit 12c8291
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src/new_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,20 @@ fi

# Sync mirror if we're using one
if [ "$LOCAL_MIRROR" = true ]; then

cd "$MIRROR_DIR"
if [ "$INIT_MIRROR" = true ]; then
if [ ! -d .repo ]; then
echo ">> [$(date)] Initializing mirror repository" | tee -a "$repo_log"
( yes||: ) | repo init -u https://github.com/LineageOS/mirror --mirror --no-clone-bundle -p linux --git-lfs &>> "$repo_log"
fi
else
echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
fi
if [ "$SYNC_MIRROR" = true ]; then
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
echo "Using LOCAL_MIRROR is not yet working"

# cd "$MIRROR_DIR"
# if [ "$INIT_MIRROR" = true ]; then
# if [ ! -d .repo ]; then
# echo ">> [$(date)] Initializing mirror repository" | tee -a "$repo_log"
# ( yes||: ) | repo init -u https://github.com/LineageOS/mirror --mirror --no-clone-bundle -p linux --git-lfs &>> "$repo_log"
# fi
# else
# echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
# fi
# if [ "$SYNC_MIRROR" = true ]; then
# echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
# repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log"
else
echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log"
fi
Expand Down Expand Up @@ -244,13 +245,15 @@ for codename in ${devices//,/ }; do

# Setup our overlays
if [ "$BUILD_OVERLAY" = true ]; then
lowerdir=$SRC_DIR/$branch_dir
upperdir=$TMP_DIR/device
workdir=$TMP_DIR/workdir
merged=$TMP_DIR/merged
mkdir -p "$upperdir" "$workdir" "$merged"
mount -t overlay overlay -o lowerdir="$lowerdir",upperdir="$upperdir",workdir="$workdir" "$merged"
source_dir="$TMP_DIR/merged"
echo "Using BUILD_OVERLAY is not yet working"

# lowerdir=$SRC_DIR/$branch_dir
# upperdir=$TMP_DIR/device
# workdir=$TMP_DIR/workdir
# merged=$TMP_DIR/merged
# mkdir -p "$upperdir" "$workdir" "$merged"
# mount -t overlay overlay -o lowerdir="$lowerdir",upperdir="$upperdir",workdir="$workdir" "$merged"
# source_dir="$TMP_DIR/merged"
else
source_dir="$SRC_DIR/$branch_dir"
fi
Expand Down

0 comments on commit 12c8291

Please sign in to comment.