My bad... I didn't read the original message that closely. Ron -----Original Message----- From: John [mailto:red@xxxxxxxxxxxxxxxxxxxxxxx] Sent: Thursday, May 15, 2003 5:55 PM To: kickstart-list@xxxxxxxxxx Subject: Re: rpm -q in %post in RedHat 9 On 15 May 2003, Ronald Reed wrote: > >From a script that I got from another list: > > RHVer=`rpm -qp --qf "%{version}\n" RedHat/RPMS/redhat-release-*.rpm` The question was about the architecture, not the release. Michael's approach is imperfect, even on RHL 7.3: if fails if there's a i386 kernel installed, returns multiple values if there are several. > > This is supposed to work for 7.3, 8.0, or 9.0, just change the > RedHat/RPMS to where the rpms are located. > > Ron > > On Thu, 2003-05-15 at 14:13, Michael J. Carter wrote: > > In RedHat 7.X one could determine the ARCH of a system by executing the > > following command in arch: > > > > carter@guglielmo$ rpm -q --qf '%{ARCH}\n' kernel > > i686 > > > > This returns null in RedHat 9 when executed inside kickstart. Does > > anyone know what changed and if there are any workarounds? > > > > Thanks, > > mjc > -- Please, reply only to the list. Join the "Linux Support by Small Businesses" list at http://mail.computerdatasafe.com.au/mailman/listinfo/lssb _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list