Hi Guilhem,
I just had a look at your patch. I think it's the right idea to rather
use what is already there, instead of always creating our own
stuff/overwriting existing /etc/passwd and /etc/nsswitch.
Thank you!
There is only one thing I don't understand:
The patch still uses a random /root-XXXXX if a root directory doesn't
exist yet. (As is the case with default initramfs-tools)
I understand that I can fix that with the custom hook, but why not just
make this deterministic by default?
Right now, this creates an extra hurdle for users to find what is
breaking the reproducability, understand the dropbear hook (or find this
bug) and create the custom hook.
Is this really necessary?
Best regards
Yannik