Lines 373-394
Link Here
|
373 |
fi |
373 |
fi |
374 |
|
374 |
|
375 |
# We only erase the old image when it is the exact same version as the |
375 |
# We only erase the old image when it is the exact same version as the |
376 |
# current image. Different version old images are left behind. This is |
376 |
# current and new images. Different version old images are left behind. |
377 |
# consistent with how "make install" of the manual kernel build works. |
377 |
# This is consistent with how "make install" of the manual kernel build |
378 |
if [ "${currDestImage}.old" == "${prevDestImage}" ] |
378 |
# works. |
|
|
379 |
if [ "${currDestImage}" == "${fullDestName}" -a \ |
380 |
"${prevDestImage}" == "${currDestImage}.old" ] |
379 |
then |
381 |
then |
380 |
# |
382 |
# |
381 |
# Case for current / old of the same base version. |
383 |
# Case for new, currrent, and old of the same base version. |
382 |
# |
384 |
# |
383 |
print_info 5 " Same base version. May have to delete old image to make room." |
385 |
print_info 5 " Same base version. May have to delete old image to make room." |
384 |
if [ "${prevDestImageExists}" -eq '1' ] |
|
|
385 |
then |
386 |
print_info 5 " Deleting old identical version ${symlinkName}." |
387 |
rm -f "${BOOTDIR}/${prevDestImage}" |
388 |
fi |
389 |
|
386 |
|
390 |
if [ "${currDestImageExists}" -eq '1' ] |
387 |
if [ "${currDestImageExists}" -eq '1' ] |
391 |
then |
388 |
then |
|
|
389 |
if [ "${prevDestImageExists}" -eq '1' ] |
390 |
then |
391 |
print_info 5 " Deleting old identical version ${symlinkName}." |
392 |
rm -f "${BOOTDIR}/${prevDestImage}" |
393 |
fi |
392 |
print_info 5 " Moving ${BOOTDIR}/${currDestImage}" |
394 |
print_info 5 " Moving ${BOOTDIR}/${currDestImage}" |
393 |
print_info 5 " to ${BOOTDIR}/${currDestImage}.old" |
395 |
print_info 5 " to ${BOOTDIR}/${currDestImage}.old" |
394 |
mv "${BOOTDIR}/${currDestImage}" "${BOOTDIR}/${currDestImage}.old" || |
396 |
mv "${BOOTDIR}/${currDestImage}" "${BOOTDIR}/${currDestImage}.old" || |
Lines 398-409
Link Here
|
398 |
# |
400 |
# |
399 |
# Case for current / old not of the same base version. |
401 |
# Case for current / old not of the same base version. |
400 |
# |
402 |
# |
401 |
print_info 5 " Different base version. Do not delete old iamges." |
403 |
print_info 5 " Different base version. Do not delete old images." |
402 |
if [ "${currDestImageExists}" -eq 1 ] |
404 |
if [ "${currDestImageExists}" -eq 1 ] |
403 |
then |
405 |
then |
404 |
prevDestImage="${currDestImage}" |
406 |
prevDestImage="${currDestImage}" |
405 |
currDestImage="${fullDestName}" |
|
|
406 |
fi |
407 |
fi |
|
|
408 |
currDestImage="${fullDestName}" |
407 |
fi |
409 |
fi |
408 |
|
410 |
|
409 |
print_info 5 " Copying ${symlinkName}: ${newSrceImage}" |
411 |
print_info 5 " Copying ${symlinkName}: ${newSrceImage}" |