1
0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-11-09 10:09:56 +01:00

Make boot_init.img available if it exists

Fixes #661
This commit is contained in:
Pete Fotheringham 2024-08-17 15:33:36 +01:00
parent 653a0d68f4
commit c0c3ac7fc2

@ -528,7 +528,7 @@ for branch in ${BRANCH_NAME//,/ }; do
files_to_zip=() files_to_zip=()
images_zip_file="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-images.zip" images_zip_file="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-images.zip"
for image in recovery boot vendor_boot dtbo super_empty vbmeta vendor_kernel_boot; do for image in recovery boot vendor_boot dtbo super_empty vbmeta vendor_kernel_boot init_boot; do
if [ -f "$image.img" ]; then if [ -f "$image.img" ]; then
echo ">> [$(date)] Adding $image.img" to "$images_zip_file" | tee -a "$DEBUG_LOG" echo ">> [$(date)] Adding $image.img" to "$images_zip_file" | tee -a "$DEBUG_LOG"
files_to_zip+=( "$image.img" ) files_to_zip+=( "$image.img" )
@ -542,7 +542,7 @@ for branch in ${BRANCH_NAME//,/ }; do
echo ">> [$(date)] Zipping the '-img' files disabled" echo ">> [$(date)] Zipping the '-img' files disabled"
# rename and copy the images to the zips directory # rename and copy the images to the zips directory
for image in recovery boot vendor_boot dtbo super_empty vbmeta vendor_kernel_boot; do for image in recovery boot vendor_boot dtbo super_empty vbmeta vendor_kernel_boot init_boot; do
if [ -f "$image.img" ]; then if [ -f "$image.img" ]; then
recovery_name="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-$image.img" recovery_name="lineage-$los_ver-$builddate-$RELEASE_TYPE-$codename-$image.img"
echo ">> [$(date)] Copying $image.img" to "$ZIP_DIR/$zipsubdir/$recovery_name" >> "$DEBUG_LOG" echo ">> [$(date)] Copying $image.img" to "$ZIP_DIR/$zipsubdir/$recovery_name" >> "$DEBUG_LOG"