View previous topic :: View next topic |
Author |
Message |
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Tue Aug 25, 2009 4:46 pm Post subject: How to get in the boot process? |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Aug 25, 2009 5:04 pm Post subject: |
|
|
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 |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Tue Aug 25, 2009 6:39 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Aug 25, 2009 7:02 pm Post subject: |
|
|
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 |
|
|
|