User Tools

Site Tools


os:linux:centos:kspostscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
os:linux:centos:kspostscript [2011/10/27 20:41] – [%post] jayos:linux:centos:kspostscript [2011/10/27 20:45] – [About This Document] jay
Line 1: Line 1:
 ====== Interactive Post-install Script in Kickstart ====== ====== Interactive Post-install Script in Kickstart ======
 ===== About This Document ===== ===== About This Document =====
-As of this writing, I've been finishing up the process of setting up a PXE booting kickstart server (which I'm planning on doing a full writeup on soon).  After getting everything working in terms of bare metal to installed OS, I got to the point of tweaking my kickstart configs and when I wanted to set up the network info on the newly created OS, I ran into a snag.  +As of this writing, I'm just finishing up the process of setting up a PXE booting kickstart server (which I'm planning on doing a full writeup on soon).  After getting everything workingin terms of bare metal to installed OS, I got to the point of starting to tweak my kickstart configs.  And when I wanted to set up the network info on the newly created OS, I ran into a snag.  
  
-At my current job, we have a few Red Hat/CentOS servers scattered about, but we are mostly a FreeBSD shop.  We already had a home-brewed PXE boot installer for FreeBSD that was originally cobbled together years ago, but after a recent merger we were starting to hear whispers of having to build out more RH/CentOS so I figured I would hop on this mission as I was by far the best "Linux guy" we had.  Being that our FreeBSD installer was home-brewed, it was generally pretty simple to add in new functionality as the install system was just a bunch of shell scripts.  I had built an interactive menu into this system for configuring the network after the install quite some time ago, and I wanted to do the same thing with this new kickstart box for RH/CentOS.+At my current job, we have a few Red Hat/CentOS servers scattered about, but we are mostly a FreeBSD shop.  We already had a home-brewed PXE boot installer for FreeBSD that was originally cobbled together years ago, but after a recent merger we were starting to hear whispers of having to build out more RH/CentOSso I figured I would hop on this mission as I was by far the best "Linux guy" we had.  Being that our FreeBSD installer was home-brewed, it was generally pretty simple to add in new functionalityas the install system was just a bunch of shell scripts.  I had built an interactive menu into this system for configuring the network after the install quite some time ago, and I wanted to do the same thing with this new kickstart box for RH/CentOS.
  
-I noticed in initial testing that anything I was trying to output to the terminal was not showing up, but that I was able to read from the terminal.  After doing a little searching, I found that [[http://hintshop.ludvig.co.nz/show/interactive-pre-post-install-scripts-redhat-kickstart/|this post]] that gave me the jumpstart I needed to get this all straightened out.  That example would work just fine for when we are standing at the machine with a crash cart, but I also had configs set up to do the installs over a serial console, so the example there would not work for that.+I noticed in initial testing that anything I was trying to output to the terminal in the ''%post'' section of the kickstart file was not showing up, but that I was able to read from the terminal.  After doing a little searching, I found [[http://hintshop.ludvig.co.nz/show/interactive-pre-post-install-scripts-redhat-kickstart/|this post]] that gave me the jumpstart I needed to get this all straightened out.  The problem I had was that though the example would work just fine for when we are standing at the machine with a crash cart, I also had configs set up to do the installs over a serial console.  That example just wouldn'work for that situation.
  
 For the purposes of brevity, I'm going to assume you are already familiar with the kickstart system, have a server, etc.  I'm just going to cover the interactive input in the ''%post'' section of the kickstart file. For the purposes of brevity, I'm going to assume you are already familiar with the kickstart system, have a server, etc.  I'm just going to cover the interactive input in the ''%post'' section of the kickstart file.
os/linux/centos/kspostscript.txt · Last modified: 2012/04/08 16:17 by jay