On 7/11/26 10:13 PM, David C Rankin wrote:
On 7/11/26 5:46 AM, Genes Lists wrote:
If you use dracut to build the initrd, then you can make a "pre-mount" script to do what you want.
...

  That is spot on. I've not use drakut with Arch before, but have used ... while now, openSUSE seems set on moving away from it... for whatever

Hi David

Interesting: last I heard was that opensuse tooling may be changing but that dracut was still to be used underneath the tools. Also, ubuntu switched over from internal tools to dracut last year. However, I don't follow either of these in detail.

dracut uses C code for core functionality (and speed), rust to handle cpio stuff and bash wrappers to pull it together. I have a preference to using compiled code for this kind of thing. My kernel install tool (sd-boot) defaults to using dracut as well. It too is compiled :)


  Above in the script, should I loop it while the resync condition is

If were me, I would definitely not loop in any dracut hook - 10 seconds is more than enough time to see the message displayed, and if something goes awry a loop could prevent booting when it otherwise would succeed.
My understanding is that dracut executes hooks sequentially.


--
Gene

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to