%pre runs twice

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

 



Is it now expected behavior for the %pre script to be executed twice?

I did not see this in RH8.0 anaconda.  Now, when I am using %pre in
Fedora Core 1, the %pre script is executed twice.  Is this expected behavior?

I put the following at the beginning of the %pre script to work around the
issue:

%pre
#!/bin/sh
# prevent running twice
if [ -f /tmp/pre.run ]; then
  echo 'pre already ran'
  exit
fi
touch /tmp/pre.run

-Aaron




[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