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
This commit is contained in:
parent
c12f23ee95
commit
01c10b014b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user