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

Re: Cat command in the %post



%post is by default chrooted to /mnt/sysimage

try adding this before your existing %post:

%post --nochroot
cp /tmp/drivetype /mnt/sysimage/tmp/drivetype

-Ed



On Wed, 2003-10-22 at 14:41, 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`
> 
> I receive the following error message during the %post:  cat:
> /tmp/drivetype: No such file or directory
> 
> If I go to the alt-F2 window, I see the file and can do a 'cat' on it.
> 
> What is going on?
> 
> Thanks!
> 
> 
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list redhat com
> https://www.redhat.com/mailman/listinfo/kickstart-list
> 





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