Solved: make-initrd -> error -8 when booting

Hi folks,

I have a derivation where I make-initrd (more or less following clever’s not-os’s stage-1):

And then another temp derivation to test it:

nix build 'github:colemickens/nixpkgs-kubernetes#pkgs.x86_64-linux.kata-test2' \
  && ./result

The problem is…

everytime my init starts up, I get error -8 from the kernel and it failing to start my init.

Run /init as init process
Failed to execute /init (error -8)
Run /init as init process
Kernel panic - not syncing: Requested init /init failed (error -8).
...

The build machine is x86_64-linux, I’m executing qemu-system-x86_64 so I’m not sure what the issue is. I’ve cracked open the cpio archive and it looks roughly like I’d expect. The init symlink is correct, the store contents look fine, etc.

Um, $! is not a shebang (#!)…