Sujet : Re: How to boot from SD but run from USB?
De : theom+news (at) *nospam* chiark.greenend.org.uk (Theo)
Groupes : comp.sys.raspberry-piDate : 24. Jan 2025, 10:10:19
Autres entêtes
Organisation : University of Cambridge, England
Message-ID : <RCn*+yn5z@news.chiark.greenend.org.uk>
References : 1 2 3
User-Agent : tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-28-amd64 (x86_64))
Chris Green <
cl@isbd.net> wrote:
A script to update the bootcode.bin on the FAT drive should be pretty
simple, just put it in /etc/rc.local and it will be run every time you
boot. It won't matter running it if /boot/bootcode.bin hasn't been
updated, though I suppose you might complain that it's writing to the
SD card unnecessarily. OK, use rsync and the file will only be
written if it has changed.
I'd probably want to do that after any package updates, because there's a
risk that the firmware files on the SD and USB become out of sync and that
could cause a boot failure.
If you ran it on a cron job say once a day using rsync, it would reduce the
chances of that happening. Or there may be a hook you can set to run it
after apt upgrade.
Theo