Failed to execute /init (error -7)
by redacted from LinuxQuestions.org on (#4V588)
kernel version 4.18.20
I am porting a 4.15 custom kernel to 4.18. It compiles cleanly. It fails early in the boot process with:
Failed to execute /init (error -7)
Starting init: /bin/sh exists but couldn't execute it (error -7)
A kernel built from the same source code without my modifications boots and runs.
According to "errno" error -7 is "E2BIG 7 Argument list too long"
Any ideas what might cause this failure mode?


I am porting a 4.15 custom kernel to 4.18. It compiles cleanly. It fails early in the boot process with:
Failed to execute /init (error -7)
Starting init: /bin/sh exists but couldn't execute it (error -7)
A kernel built from the same source code without my modifications boots and runs.
According to "errno" error -7 is "E2BIG 7 Argument list too long"
Any ideas what might cause this failure mode?