Ancestors

Toot

Written by Fishd on 2024-10-02 at 12:48

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

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113237905692837272
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
237.871551 milliseconds
Gemini-to-HTML Time
0.414923 milliseconds

This content has been proxied by September (ba2dc).