From 21bd52daa00c23f6093c6941616105f45c05ff79 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Thu, 21 May 2020 17:16:34 +0100 Subject: [PATCH] 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. --- rpi-eeprom-update | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpi-eeprom-update b/rpi-eeprom-update index 201a7e5..796a3cb 100755 --- a/rpi-eeprom-update +++ b/rpi-eeprom-update @@ -440,7 +440,11 @@ findBootFS() # If BOOTFS is not a directory or doesn't contain any .elf files then # it's probably not the boot partition. [ -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()