| Deutsch English Français Italiano |
|
<RCn*+yn5z@news.chiark.greenend.org.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!feeder3.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail
From: Theo <theom+news@chiark.greenend.org.uk>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How to boot from SD but run from USB?
Date: 24 Jan 2025 09:10:19 +0000 (GMT)
Organization: University of Cambridge, England
Message-ID: <RCn*+yn5z@news.chiark.greenend.org.uk>
References: <nfra6l-cif1.ln1@q957.zbmc.eu> <871pwtnn7q.fsf@tilde.institute> <260b6l-e1g1.ln1@q957.zbmc.eu>
Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:93.93.131.173";
logging-data="22686"; mail-complaints-to="abuse@chiark.greenend.org.uk"
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-28-amd64 (x86_64))
Originator: theom@chiark.greenend.org.uk ([93.93.131.173])
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