u-boot install fallback - use version which was downloaded from repo (#3475)

This commit is contained in:
Igor Pečovnik
2022-02-12 10:30:07 +01:00
committed by GitHub
parent 3c1dde938c
commit 078b58df01

View File

@@ -878,7 +878,12 @@ PRE_UPDATE_INITRAMFS
display_alert "Mount point" "$(echo -e "$freespace" | grep $MOUNT | head -1 | awk '{print $5}')" "info"
# stage: write u-boot, unless the deb is not there, which would happen if BOOTCONFIG=none
[[ -f "${DEB_STORAGE}"/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb ]] && write_uboot $LOOP
# exception: if we use the one from repository, install version which was downloaded from repo
if [[ -f "${DEB_STORAGE}"/${CHOSEN_UBOOT}_${REVISION}_${ARCH}.deb ]]; then
write_uboot $LOOP
elif [[ "${UPSTREM_VER}" ]]; then
write_uboot $LOOP
fi
# fix wrong / permissions
chmod 755 $MOUNT