mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
Disable LOCAL_MIROR & BUILD_OVERLAY for now
This commit is contained in:
parent
498db885de
commit
566dcf4d56
@ -171,22 +171,24 @@ fi
|
|||||||
|
|
||||||
# Sync mirror if we're using one
|
# Sync mirror if we're using one
|
||||||
if [ "$LOCAL_MIRROR" = true ]; then
|
if [ "$LOCAL_MIRROR" = true ]; then
|
||||||
|
echo "Using LOCAL_MIRROR is not yet working"
|
||||||
|
|
||||||
cd "$MIRROR_DIR"
|
# cd "$MIRROR_DIR"
|
||||||
if [ "$INIT_MIRROR" = true ]; then
|
# if [ "$INIT_MIRROR" = true ]; then
|
||||||
if [ ! -d .repo ]; then
|
# if [ ! -d .repo ]; then
|
||||||
echo ">> [$(date)] Initializing mirror repository" | tee -a "$repo_log"
|
# 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"
|
# ( yes||: ) | repo init -u https://github.com/LineageOS/mirror --mirror --no-clone-bundle -p linux --git-lfs &>> "$repo_log"
|
||||||
fi
|
# fi
|
||||||
else
|
# else
|
||||||
echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
|
# echo ">> [$(date)] Initializing mirror repository disabled" | tee -a "$repo_log"
|
||||||
fi
|
# fi
|
||||||
if [ "$SYNC_MIRROR" = true ]; then
|
# if [ "$SYNC_MIRROR" = true ]; then
|
||||||
echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
|
# echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log"
|
||||||
repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$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"
|
# else
|
||||||
fi
|
# echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log"
|
||||||
|
# fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -244,13 +246,15 @@ for codename in ${devices//,/ }; do
|
|||||||
|
|
||||||
# Setup our overlays
|
# Setup our overlays
|
||||||
if [ "$BUILD_OVERLAY" = true ]; then
|
if [ "$BUILD_OVERLAY" = true ]; then
|
||||||
lowerdir=$SRC_DIR/$branch_dir
|
echo "Using BUILD_OVERLAY is not yet working"
|
||||||
upperdir=$TMP_DIR/device
|
|
||||||
workdir=$TMP_DIR/workdir
|
# lowerdir=$SRC_DIR/$branch_dir
|
||||||
merged=$TMP_DIR/merged
|
# upperdir=$TMP_DIR/device
|
||||||
mkdir -p "$upperdir" "$workdir" "$merged"
|
# workdir=$TMP_DIR/workdir
|
||||||
mount -t overlay overlay -o lowerdir="$lowerdir",upperdir="$upperdir",workdir="$workdir" "$merged"
|
# merged=$TMP_DIR/merged
|
||||||
source_dir="$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
|
else
|
||||||
source_dir="$SRC_DIR/$branch_dir"
|
source_dir="$SRC_DIR/$branch_dir"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user