and during first reboot you image the disk and flash it into millions of routers, resulting in something like https://devcraft.io/posts/2017/07/21/tp-link-archer-c9-admin...
But, at some point nobody can save you from yourself entirely. Get a broken enough system, and every security feature will fail.
I'm assuming a bootloader can't collect more in three seconds than an OS can collect in multiple minutes. Is that assumption wrong?
If it's the design of the code that lets it collect entropy faster, then it's that code that needs to be ported, and it doesn't matter if it's in a bootloader or not except to save a second or two.
What about virtual machines / machines booting off an image? We can't put a seed in the image, or it'll get distributed to all downstream consumers.
Also, there's the case posed in response to my first comment, about IOT devices which would ship with some factory-installed image.
(I suppose there are some novel ways one could work around this such as somehow keeping a pool of one-shot images ready w/ just the seed added to them, but I don't feel like this is how real-world systems work. E.g., an AMI in AWS?)
Mitigations within mitigations.
Having one random seed per VM image that gets installed is better than having nothing at all -- now, an attacker needs to have your install image. Then the hardware RNG and the virtio random drivers help mix into that seed.
Given that presumably you've already booted the image for testing, you've probably already generated the SSH keys that you need to be concerned about -- so you'd probably need to take care to regenerate them securely in any case, from a running system that has started to gather entropy from all the sources it can get its hands on, including the boot loader.
And, ideally part of the imaging process would write some random data to the image. But I agree, most people wouldn't even think of doing that.
Why not? The install media should be collecting entropy as it does the install, xoring it with a pool of random data built into it, and writing that to disk as part of the install.
Take a look at https://github.com/openbsd/src/blob/master/distrib/miniroot/..., specifically, feed_random and store_random