Hi All,
I'm trying to figure out where the inittab is for a pxeboot/kickstart installation so that I can disable virtual terminals that allow for interactive input such as CTRL+ALT+F2. I've looked in the /etc directories for the pxeboot initrd as well as the stage2 and minstg2 files. Am I missing something grossly obvious here?
Those terminals are started in the inittab file. Looks for the "mingetty" lines.
On Wed, Aug 12, 2009 at 2:58 PM, James A. Peltierjpeltier@fas.sfu.ca wrote:
Hi All,
I'm trying to figure out where the inittab is for a pxeboot/kickstart installation so that I can disable virtual terminals that allow for interactive input such as CTRL+ALT+F2. I've looked in the /etc directories for the pxeboot initrd as well as the stage2 and minstg2 files. Am I missing something grossly obvious here?
-- James A. Peltier Systems Analyst (FASNet), VIVARIUM Technical Director
On Wed, 12 Aug 2009, Brian Mathis wrote:
Those terminals are started in the inittab file. Looks for the "mingetty" lines.
I know that much but I can't find the file that contains inittab
On Wed, 12 Aug 2009, Brian Mathis wrote:
Those terminals are started in the inittab file. Looks for the "mingetty" lines.
Clicked send to quickly. I know that the file name that I am looking for is inittab, however, none of the image files seem to contain it. In fact, after the kickstart installation has begun and the virtual terminals become available there is no /etc/inittab, so it would seem to me that this would need to be created *or* that it is looking at/for something else. Can anyone confirm how I can disable the CTRL+ALT+F2 terminal window during installation? It poses a security risk for unattended installs.
On Wed, 12 Aug 2009, nate wrote:
James A. Peltier wrote:
window during installation? It poses a security risk for unattended installs.
Unattended? use serial console
Even if you don't have one, doesn't matter since it's unattended!
nate
noshell was just what I needed. The kickstarts are configured to allow any system admin to start a kickstart and then walk away. 20 minutes later this is a fully patched fully configured installation of the operating system for them to work with. It is useful to have access to the other virtual terminals to see error messages if something fails. If we switched to using serial we'd have to connect to each individual machines serial port to see these errors.
James A. Peltier wrote:
Hi All,
I'm trying to figure out where the inittab is for a pxeboot/kickstart installation so that I can disable virtual terminals that allow for interactive input such as CTRL+ALT+F2. I've looked in the /etc directories for the pxeboot initrd as well as the stage2 and minstg2 files. Am I missing something grossly obvious here?
I think this is all handled by the 'loader' binary that is the first stage of the install.
However, the anaconda docs state that there is a boot command option:
noshell Do not put a shell on tty2 during install.
see: http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-kickstart2-startinginstall.html
James Pearson
On Wed, 12 Aug 2009, James Pearson wrote:
James A. Peltier wrote:
Hi All,
I'm trying to figure out where the inittab is for a pxeboot/kickstart installation so that I can disable virtual terminals that allow for interactive input such as CTRL+ALT+F2. I've looked in the /etc directories for the pxeboot initrd as well as the stage2 and minstg2 files. Am I missing something grossly obvious here?
I think this is all handled by the 'loader' binary that is the first stage of the install.
However, the anaconda docs state that there is a boot command option:
noshell Do not put a shell on tty2 during install.
see: http://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-kickstart2-startinginstall.html
James Pearson
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Okay, I'm glad it wasn't quite so obvious. I don't know how I missed that option because I scanned the kickstart documentation a couple of times.
Thanks James!