]> git.plutz.net Git - rpi_small/commitdiff
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 ed769e66dd5d9ae84abfd4d994e1b1f09c87d652..6f810da436c477e65722168954e5084f47b3d6dc 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