mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user