os:linux:centos:kspostscript
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
os:linux:centos:kspostscript [2011/10/27 20:41] – [%post] jay | os:linux:centos:kspostscript [2012/04/08 16:17] (current) – [%post] 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). | + | 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). |
- | 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, | + | 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, |
- | 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. | + | I noticed in initial testing that anything I was trying to output to the terminal |
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 '' | 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 '' | ||
Line 29: | Line 29: | ||
clear | clear | ||
- | while [ "x$answer" | + | while [ x"$answer" |
echo -n "enter hostname: "; read hostname | echo -n "enter hostname: "; read hostname | ||
echo -n "enter ip: "; read ip | echo -n "enter ip: "; read ip | ||
Line 46: | Line 46: | ||
done | done | ||
- | if [ "x$opts" | + | if [ x"$opts" = " |
opts=" | opts=" | ||
else | else |
os/linux/centos/kspostscript.txt · Last modified: 2012/04/08 16:17 by jay