Fixed xCAT-genesis-scripts rpm to run mknb even if not upgrade, as long as mknb exists
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14849 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
18e5d75599
commit
ef544a9133
@ -57,9 +57,10 @@ cd -
|
||||
|
||||
|
||||
%post
|
||||
if [ "$1" == "2" ]; then #only on upgrade, as on install it's probably not going to work...
|
||||
if [ "$1" == "2" -o -e /opt/xcat/sbin/mknb ]; then #only on upgrade, or if the rest of xcat is already installed
|
||||
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
|
||||
. /etc/profile.d/xcat.sh
|
||||
echo mknb %{tarch}...
|
||||
mknb %{tarch}
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user