From 337cfe9d415c1e8d9566fe957520cdbbf5918966 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 18 Sep 2008 18:53:19 +0000 Subject: [PATCH] -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 --- perl-xCAT/perl-xCAT.spec | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/perl-xCAT/perl-xCAT.spec b/perl-xCAT/perl-xCAT.spec index 7877fb708..9b583f8b9 100644 --- a/perl-xCAT/perl-xCAT.spec +++ b/perl-xCAT/perl-xCAT.spec @@ -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