On 07/22/2011 07:01 PM, Kartik Subbarao wrote: > On 07/21/2011 09:51 AM, Manuel Wolfshant wrote: > >> http://wiki.centos.org/TipsAndTricks/KickStart > >> > >> Does anyone on this list have write access to that Wiki page? Since it's > >> the #1 google search result for "centos kickstart", it'd be ideal to > >> have it linked from there. > > Enjoy. > > Thanks Manuel, I'm sure this will be of help to many folks!! > > One suggestion -- when I deployed the ks-minimalC6.cfg, there were still > some -firmware packages that got installed and were not removed by the > kickstart process. I noticed that you explicitly remove various firmware > packages by name with the '-' notation. Another approach would be to > remove them all programmatically in a %post section, like this: > > %post > rpm -e $(rpm -qa | grep -i \\-firmware | grep -v kernel-firmware) > And by the way, the above can rewritten in a shorter form: rpm -e $( rpm -qa \*firmware | grep -v kernel) rpm -qa will enumerate all packages but in fact you want only the firmware ones. So you run an useless grep to filter them when in fact rpm can do that for you in the first place.