Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get in the boot process?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Tue Aug 25, 2009 4:46 pm    Post subject: How to get in the boot process? Reply with quote

Hi, ALL,
From my Gentoo box I'm mounting 2 Windows XP machine. In the /etc/fstab file I had a line to mount them.

However, during the boot, all I see is:

Code:

Password:
Password:


What I would like to see is:

Code:

Enter the password to connect to <Machine1>
Password:
Enter the password to connect to <Machine2>
Password:


Is it possible to do?

Thank you.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Aug 25, 2009 5:04 pm    Post subject: Reply with quote

Yes, but not in "/etc/fstab". Look at "/etc/conf.d/local". You can put the mount commands (and whatever prompting you want) in there.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Tue Aug 25, 2009 6:39 pm    Post subject: Reply with quote

Hi, John,

Code:

igor@IgorsGentoo ~ $ cat /etc/conf.d/local
cat: /etc/conf.d/local: No such file or directory


What format this file has? Which command I can put there? At which point they will be executed?

Thank you.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10590
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Aug 25, 2009 7:02 pm    Post subject: Reply with quote

Sorry; I had forgotten that this was different in baselayout-2*. On baselayout-1* the file is called "/etc/conf.d/local.start". It's basically bash, so you can use "echo" for your prompts and "mount" to mount your Windows machines. There's also a "/etc/conf.d/local.stop" file.

It's done after all of the other services are loaded:
/etc/init.d/local:

...
depend() {
    after *
}
...
See the Initscripts section of the Handbook for more explanation on what that little code snippet means. :)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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