Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel 3.4.14 shebang problem? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Sat Jun 07, 2014 3:36 am    Post subject: kernel 3.4.14 shebang problem? [SOLVED] Reply with quote

I'm using sys-kernel/dracut-037-r2 and sys-kernel/gentoo-sources-3.14.4.

When I boot the initrd created by dracut[systemd], there's an execution failure of "dracut-rootfs-generator.sh", the reason is "exec format error".
When I boot the initrd created by dracut[-systemd], there's a more serious execution failure of "/init", the reason is "-8" which is ENOEXEC that is also "exec format error".

Both of them is shell script with shebang "#!/bin/sh".
In initrd, "/bin/sh" exists as a symlink points to /bin/bash, so no problem for it.

It's really weird why the linux kernel emit this error.
It seems that my kernel does not support shebang anymore, is there any kernel config related to this?


Last edited by fpemud on Sun Jun 08, 2014 9:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21639

PostPosted: Sat Jun 07, 2014 3:52 am    Post subject: Reply with quote

Yes, but if I recall correctly, it defaults to on and has some pretty explicit help text. Unless you go around manually disabling core features, it is unlikely that this is the reason. The feature is controlled by CONFIG_BINFMT_SCRIPT.
Back to top
View user's profile Send private message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 349

PostPosted: Sun Jun 08, 2014 9:34 pm    Post subject: Reply with quote

The reason is that I select CONFIG_BINFMT_SCRIPT as M.
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum