Anyone able to help with a #debian question?
I've a small script I run on my linux workstation that takes the latest debian #ISO, injects a preseed.cfg file into the initrd.gz file and repackages the ISO.
This all works great on amd64 hardware.
I'd now like to do something similar on my laptop, which runs #macOS... the script mostly works fine, except that the step to inject the preseed.cfg file uses the command “cpio -H newc -o -A -F initrd” ... this is then compressed into a gz file etc etc.
Now, on macOS, according to the man page for cpio the ‘-A' option is “not yet implemented” ... and, for reasons I’ll not bore you with, Homebrew isn't an option (to just install the GNU versions of these tools).
Is there an alternative way to pipe this file into the initrd file? It's not something I'm overly familiar with.
The use case is to have a custom ISO file I can use for VM builds that has a custom user account with a pre-configured SSH key in place, to make bootstrapping via Ansible easier.
Ta.
[#]linux #HelpMeObiWanYoureOurOnlyHope
=> More informations about this toot | More toots from Fishd@infosec.exchange
text/gemini
This content has been proxied by September (ba2dc).