I’d like to print my contact info in case someone finds my laptop and turns it on. (I know, a physical sticker would be a better idea - but I’m a geek…)
It would need to happen in (before?) stage 1 before the disk encryption password entry.
I thought to patch the stage-1-init.sh - but how can I use a patched thing (somehow related to system.build I guess?)
You can just add something like this to configuration.nix
boot.initrd.preDeviceCommands = ''
echo I am tennox
'';
Though this won’t work with systemd initrd. For that, it’s trickier because systemd owns the console instead of PID 1 just being a shell script.
In either case, I’d be tempted to make a plymouth theme that displays this stuff. That way you could even have it display a qr code with all the relevant information in it.