From ef544a91339f336433bb42241152b52a08131e1c Mon Sep 17 00:00:00 2001 From: bp-sawyers Date: Thu, 10 Jan 2013 18:52:34 +0000 Subject: [PATCH] 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 --- xCAT-genesis-scripts/xCAT-genesis-scripts.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-genesis-scripts/xCAT-genesis-scripts.spec b/xCAT-genesis-scripts/xCAT-genesis-scripts.spec index d5cf072ee..e29bc6eec 100644 --- a/xCAT-genesis-scripts/xCAT-genesis-scripts.spec +++ b/xCAT-genesis-scripts/xCAT-genesis-scripts.spec @@ -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