mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
rpi-eeprom-update: Change BOOTFS .elf check to a warning
If no .elf files are found in the boot partition then raise a warning instead of an error. This normally indicates a system configuration error but allow the usage of this tool in non-standard setups.
This commit is contained in:
@@ -440,7 +440,11 @@ findBootFS()
|
|||||||
# If BOOTFS is not a directory or doesn't contain any .elf files then
|
# If BOOTFS is not a directory or doesn't contain any .elf files then
|
||||||
# it's probably not the boot partition.
|
# it's probably not the boot partition.
|
||||||
[ -d "${BOOTFS}" ] || die "BOOTFS: \"${BOOTFS}\" is not a directory"
|
[ -d "${BOOTFS}" ] || die "BOOTFS: \"${BOOTFS}\" is not a directory"
|
||||||
[ "$(find "${BOOTFS}/" -name "*.elf" | wc -l)" -gt 0 ] || die "BOOTFS: \"${BOOTFS}\" contains no .elf files"
|
if [ "$(find "${BOOTFS}/" -name "*.elf" | wc -l)" -gt 0 ]; then
|
||||||
|
echo "BOOTFS ${BOOTFS}"
|
||||||
|
else
|
||||||
|
echo "WARNING: BOOTFS: \"${BOOTFS}\" contains no .elf files. Please check boot directory"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
getVL805CurrentVersion()
|
getVL805CurrentVersion()
|
||||||
|
|||||||
Reference in New Issue
Block a user