-Remove obsolete migration script from before 2.0 ever released
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9d4b741a04
commit
337cfe9d41
@ -85,34 +85,6 @@ if [ "$1" -gt 1 ]; then #Ugrade only, restart daemon and migrate settings
|
||||
if [ -x /etc/init.d/xcatd ] && [ -f "/proc/cmdline" ]; then
|
||||
. /etc/profile.d/xcat.sh
|
||||
/etc/init.d/xcatd restart
|
||||
#THE NEXT BIT SHOULD NOT BE RELEVANT TO RELEASE, IT SHOULD HELP A BETA INSTALL UPDATE GRACEFULLY
|
||||
BOOTPCHECK=`tabdump bootparams|grep -v '^#node'`
|
||||
if [ -z "$BOOTPCHECK" ]; then
|
||||
echo -n "Old schema use detected, migrating settings, may take a while..."
|
||||
for node in `nodels`; do
|
||||
MIGSETTING=`nodels $node noderes.serialport|sed -e 's/^.*:.*:\s*//'`
|
||||
nodech $node noderes.serialport=
|
||||
if [ ! -z "$MIGSETTING" ]; then
|
||||
nodech $node "nodehm.serialport=$MIGSETTING"
|
||||
fi
|
||||
MIGSETTING=`nodels $node noderes.kernel|sed -e 's/^.*:.*:\s*//'`
|
||||
nodech $node noderes.kernel=
|
||||
if [ ! -z "$MIGSETTING" ]; then
|
||||
nodech $node "bootparams.kernel=$MIGSETTING"
|
||||
fi
|
||||
MIGSETTING=`nodels $node noderes.initrd|sed -e 's/^.*:.*:\s*//'`
|
||||
nodech $node noderes.initrd=
|
||||
if [ ! -z "$MIGSETTING" ]; then
|
||||
nodech $node "bootparams.initrd=$MIGSETTING"
|
||||
fi
|
||||
MIGSETTING=`nodels $node noderes.kcmdline|sed -e 's/^.*:.*:\s*//'`
|
||||
nodech $node noderes.kcmdline=
|
||||
if [ ! -z "$MIGSETTING" ]; then
|
||||
nodech $node "bootparams.kcmdline=$MIGSETTING"
|
||||
fi
|
||||
done
|
||||
echo "Done"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user