View previous topic :: View next topic |
Author |
Message |
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Sat Jun 07, 2014 3:36 am Post subject: kernel 3.4.14 shebang problem? [SOLVED] |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21639
|
Posted: Sat Jun 07, 2014 3:52 am Post subject: |
|
|
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 |
|
|
fpemud Guru
Joined: 15 Feb 2012 Posts: 349
|
Posted: Sun Jun 08, 2014 9:34 pm Post subject: |
|
|
The reason is that I select CONFIG_BINFMT_SCRIPT as M.
Thanks. |
|
Back to top |
|
|
|
|
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
|
|