Discussion:
[Help-bash] Bash don't get run during boots up
Park Kit
2017-03-27 09:40:28 UTC
Permalink
Hello all,

Sorry if this question is inappropriate in this forum. However, I am not
sure where I seek to get help for this and if there is other forum or
mailing-list which is more appropriate please let me know.

I have cross-complied Bash but I don't get a prompt when a box boots up.
Have used bash as init process.

In order to prove that the runtime is okay, have tried simple application
that is build either static or dynamic and the both works okay. However,
when tried to use Bash, it boots up but do not get a prompt.

In order to see how far Bash goes, added logs lines to main in shell.c
using report_error() but no outputs so not sure if Bash gets run or not.

Have anyone has suggestions or ideas on how to approach this and to know if
Bash gets run?

Many thanks,
Kit
Eduardo Bustamante
2017-03-27 14:23:29 UTC
Permalink
On Mon, Mar 27, 2017 at 3:40 AM, Park Kit <***@gmail.com> wrote:
[...]
Post by Park Kit
I have cross-complied Bash but I don't get a prompt when a box boots up.
Have used bash as init process.
Why? I don't think bash is meant to be used like that.
Greg Wooledge
2017-03-27 14:30:52 UTC
Permalink
Post by Eduardo Bustamante
[...]
Post by Park Kit
I have cross-complied Bash but I don't get a prompt when a box boots up.
Have used bash as init process.
Why? I don't think bash is meant to be used like that.
Sometimes, on Linux systems, a kernel argument like "init=/bin/sh" is
used to enter a rescue environment, when even the traditional single
user mode is not working. (One example of this is "I forgot root's
password", on a system where single user mode prompts for that.)

I suspect help-bash is not going to be the best list for this question,
unless the Original Poster has it working with "init=/bin/bash" and
failing with "init=/bin/mybash", where mybash is the program compiled
with whatever changes the OP introduced, and bash is the OS vendor's
bash shell.
Park Kit
2017-03-27 14:35:49 UTC
Permalink
Why not? After all, init process will get you a shell.

Many thanks,
Kit
https://kitpark.slack.com/
------
Sorry for a terse reply or typo as sent from a mobile.
Post by Eduardo Bustamante
[...]
Post by Park Kit
I have cross-complied Bash but I don't get a prompt when a box boots up.
Have used bash as init process.
Why? I don't think bash is meant to be used like that.
Loading...