Sure: %pre grep ks.cfg /proc/cmdline" && echo "Kickstart" || echo "Not Kickstart" You may not have ks.cfg, but you could grep for other things, or even pass an additional bogus param to on the append line of your pxelinux.cfg/syslinux.cfg in your kickstart. --Rick Dennis > Hello all, > > Is there a way within a spec file to distinguish whether or not your RPM > is > being installed via a kickstart or is it being installed on an existing > server? Perhaps you can write some scriptlet that will act one way during > an installation via kickstart and another way during a manual installation > on an existing server... > > Thanks very much, > > Ben Piela > > > Please do not transmit orders or instructions regarding a UBS account by > email. The information provided in this email or any attachments is not an > official transaction confirmation or account statement. For your > protection, > do not include account numbers, Social Security numbers, credit card > numbers, passwords or other non-public information in your email. Because > the information contained in this message may be privileged, confidential, > proprietary or otherwise protected from disclosure, please notify us > immediately by replying to this message and deleting it from your computer > if you have received this communication in error. Thank you. > > UBS Financial Services Inc. > UBS International Inc. > > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list > _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list