1

I want my login prompt to come as soon as few necessary drivers are loaded. So for example once SPI driver is loaded, I will put the login prompt application just below SPI driver , and the CPU will execute this login application. Ultimately I will be having a fully running login prompt on the console just after loading of SPI drivers is over.

How can I set a login prompt as soon as possible in the boot sequence? How should I proceed?

3
  • are you sue to take the problem in the right order ? you should change your question to how can I set a login prompt as soon as possible in the boot sequence, because asked like this it's very unlikely that you get an answer
    – Kiwy
    Apr 7, 2014 at 8:30
  • @Kiwy Kindly edit the title. Your suggestion is correct Apr 7, 2014 at 8:35
  • 1
    What distribution are you on? You probably want to look at lwn.net/Articles/299483 and systemd based systems for the fastest "prompting".
    – Anthon
    Apr 7, 2014 at 8:48

1 Answer 1

2

If you want it AS SOON AS POSSIBLE, you ensure you have all that's necessary in your initramfs image to support this and add this kernel parameter to your bootloader:

init=/bin/login

That will get it up AS SOON AS IS POSSIBLE - if at all.

3
  • could you please elaborate on "all that's necessary in your initramfs image to support this" Apr 9, 2014 at 12:44
  • is it mandatory to have initramfs if I want a login prompt? let's say I do not want to have any file system at all, can I have login prompt then, once linux boot? Apr 9, 2014 at 15:37
  • It is mandatory to have initramfs. All thats necessary would be login's dependencies.
    – mikeserv
    Apr 9, 2014 at 18:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.