Re: Logging from %pre section

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

 



On Mon, 2002-12-16 at 17:42, msimoni@xxxxxxxxxxxx wrote:
> 
> %pre
> echo "from %pre to /tmp" >> /tmp/test-file -> nothing goes in  the file
> echo "from %pre to /mnt" >> /mnt/sysimage/tmp/test-file -> nothing either in
> the file
> 
The second one will fail because the directory doesn't exist, since you
are in pre, you don't have any drives to write to yet.

The first one should work, but keep in mind that /tmp is in the ramdisk,
so make sure you do something with the file in %post (like copy it to
the hard drive), or it will disappear when you reboot (and be aware that
the space available for you to write to files in the ramdsik is
limited).

-- 
Jason Kohles                                 jkohles@xxxxxxxxxx
Senior Engineer                 Red Hat Professional Consulting





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux