Allow rpi-update to fail if bootloader is already present
authorPaul Hänsch <paul@plutz.net>
Thu, 1 Nov 2018 15:49:29 +0000 (16:49 +0100)
committerPaul Hänsch <paul@plutz.net>
Thu, 1 Nov 2018 15:49:29 +0000 (16:49 +0100)
Makefile

index ed769e6..6f810da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ raspi_root/: raspi_root .FORCE
        chroot "$@" apt-get --yes install ${PACKAGES}
        chroot "$@" apt-get --yes --auto-remove purge
        chroot "$@" apt-get --yes --auto-remove upgrade
-       chroot "$@" rpi-update
+       chroot "$@" rpi-update || [ -f "$@/boot/bootcode.bin" ]
        sync
        chroot "$@" apt-get clean
        chroot "$@" rm /usr/local/sbin/invoke-rc.d