Subj : Re: How to boot from SD but run from USB? To : Theo From : Chris Green Date : Fri Jan 24 2025 12:52:51 Theo wrote: > Chris Green 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. > Yes, agreed. I suppose you could use inotify but I've never really got on very well with that. -- Chris Green ยท --- SoupGate-Win32 v1.05 * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3) .