From 01c10b014b84ad657713dfbc90487fcd232ff618 Mon Sep 17 00:00:00 2001 From: immarvin Date: Tue, 15 May 2012 03:25:47 +0000 Subject: [PATCH] fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/setbootfromdisk | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/xCAT/postscripts/setbootfromdisk b/xCAT/postscripts/setbootfromdisk index e8d2424bd..13b45c94f 100755 --- a/xCAT/postscripts/setbootfromdisk +++ b/xCAT/postscripts/setbootfromdisk @@ -36,13 +36,13 @@ if [[ $OS = "Linux" ]]; then then if echo $MPATH | grep "sdd" then - logger -t xcat setbootfromdisk: Setting sda sdb sdc sdd to be the default bootup device + logger -t xcat -p local4.info setbootfromdisk: Setting sda sdb sdc sdd to be the default bootup device echo "setbootfromdisk: setting up sda sdb sdc sdd to be the default bootup device" bootlist -m normal sda sdb sdc sdd exit 0 fi fi - logger -t xcat setbootfromdisk: Setting sda sdb to be the default bootup device + logger -t xcat -p local4.info setbootfromdisk: Setting sda sdb to be the default bootup device echo "setbootfromdisk: setting up sda sdb to be the default bootup device for software raid" bootlist -m normal sda sdb exit 0 @@ -67,13 +67,13 @@ if [[ $OS = "Linux" ]]; then then if echo $i | grep "sda" then - logger -t xcat setbootfromdisk: Setting sda sdb to be the default bootup device + logger -t xcat -p local4.info setbootfromdisk: Setting sda sdb to be the default bootup device echo "setbootfromdisk: setting up sda sdb to be the default bootup device" bootlist -m normal sda sdb exit 0 elif echo $i | grep "sdc" then - logger -t xcat setbootfromdisk: Setting sdc sdd to be the default bootup device + logger -t xcat -p local4.info setbootfromdisk: Setting sdc sdd to be the default bootup device echo "setbootfromdisk: setting up sdc sdd to be the default bootup device" bootlist -m normal sdc sdd exit 0 @@ -84,7 +84,7 @@ if [[ $OS = "Linux" ]]; then if echo $MPATH | grep "sdb" then - logger -t xcat setbootfromdisk: Setting sda sdb to be the default bootup device + logger -t xcat -p local4.info setbootfromdisk: Setting sda sdb to be the default bootup device echo "setbootfromdisk: setting up sda sdb to be the default bootup device" bootlist -m normal sda sdb exit 0 @@ -92,15 +92,15 @@ if [[ $OS = "Linux" ]]; then fi if [[ -z $BOOTDEVICE ]]; then - logger -t xcat setbootfromdisk: cannot find the booting device + logger -t xcat -p local4.err setbootfromdisk: cannot find the booting device else - logger -t xcat setbootfromdisk: Setting $BOOTDEVICE to be the default bootup device + logger -t xcat -p local4.info setbootfromdisk: Setting $BOOTDEVICE to be the default bootup device echo "setbootfromdisk: setting up $BOOTDEVICE as the default bootup device" bootlist -m normal $BOOTDEVICE exit 0 fi else - logger -t xcat Could not find /usr/sbin/bootlist + logger -t xcat -p local4.err Could not find /usr/sbin/bootlist echo "setbootfromdisk: could not find /usr/sbin/bootlist" exit -1 fi