[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Cat command in the %post



Rebecca R Hepper seagate com wrote:
Hello All,

I am working with RedHat 9.0.  In my %pre section I determine the type of
hard drives and create a file containing the drive type as shown below:

echo "ide" > /tmp/drivetype

In my %post section I try to read the info from that file into a variable:

%post
driveType=`cat /tmp/drivetype`

You need %post --nochroot


Forrest
--





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]