LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-14-2019, 07:43 PM   #1
redacted
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Rep: Reputation: Disabled
Failed to execute /init (error -7)


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?
 
Old 11-15-2019, 08:15 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,714

Rep: Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189
Are we 32/64 bit? X86_64 or something else? OS? Anything else odd?

One thing to check is /lib/of.so, and /lib/ld-lsb.so. They should be symlonks pointing at /lib/ld-<version>.so. On slackware and other systems, it's not /lib, but /lib64.

It it's using ld-lsb.so and that symlonk it throws a soutrious error.
 
Old 11-15-2019, 12:51 PM   #3
redacted
LQ Newbie
 
Registered: Nov 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Are we 32/64 bit? X86_64 or something else? OS? Anything else odd?
x86_64. Ubuntu 18.04.2 LTS.

The unmodified 4.18.20 kernel boots and runs on the same system, so I don't think /lib/of.so is the problem.
 
Old 11-16-2019, 03:07 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,714

Rep: Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189Reputation: 1189
Just check that you have /lib/ld.so & /lib/ld-lsb.so as symlinks.

The boot sequence is: The kernel boots, United is loaded, it mounts / and runs init. Check the logs and see what's going on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to Execute Init. No Init found. ihjaz Linux - Server 4 11-20-2012 04:02 AM
INIT : cannot execute /etc/init.d/rc blink182 Debian 3 05-08-2011 04:56 AM
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 07:51 AM
exec of init (/sbin/init) failed!!! 2 raklo Linux - Kernel 1 05-28-2007 10:02 AM
exec of init (/sbin/init) failed!! raklo Linux - Kernel 2 01-04-2007 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration