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@12713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
immarvin 2012-05-15 08:15:32 +00:00
parent 971251a612
commit e7f9cd17e6

View File

@ -17,13 +17,13 @@ then
if grep sda1 /proc/partitions >/dev/null 2>&1
then
echo Autodetected existing /dev/sda1
logger -t $ME Autodetected existing /dev/sda1
logger -t xcat -p local4.info $ME Autodetected existing /dev/sda1
echo Checking filesystem /dev/sda1
logger -t $ME Checking filesystem /dev/sda1
logger -t xcat -p local4.info $ME Checking filesystem /dev/sda1
fsck -y /dev/sda1
mkdir -p $mydir
echo mounting existing /dev/sda1 to $mydir
logger -t $ME mounting existing /dev/sda1 to $mydir
logger -t xcat -p local4.info $ME mounting existing /dev/sda1 to $mydir
if mount /dev/sda1 $mydir
then
echo
@ -32,14 +32,14 @@ then
exit 0
else
echo mounting /dev/sda1 to $mydir failed
logger -t $ME mounting /dev/sda1 to $mydir failed
logger -t xcat -p local4.warning $ME mounting /dev/sda1 to $mydir failed
fi
fi
fi
echo Creating Partition
logger -t $ME Creating Partition
logger -t xcat -p local4.info $ME Creating Partition
parted -s /dev/sda mklabel gpt
parted -s -- /dev/sda mkpart primary ext3 0 -0
if grep sda1 /proc/partitions >/dev/null 2>&1
@ -47,7 +47,7 @@ then
sleep 5
else
echo failed to create partition, exiting $ME
logger -t $ME failed to create partition, exiting $ME
logger -t xcat -p local4.err $ME failed to create partition, exiting $ME
echo
echo Failed!
echo
@ -55,11 +55,11 @@ else
fi
echo Creating new ext3 filesystem: /dev/sda1
logger -t $ME Creating new ext3 filesystem: /dev/sda1
logger -t xcat -p local4.info $ME Creating new ext3 filesystem: /dev/sda1
mke2fs -j /dev/sda1
mkdir -p $mydir
echo mounting new /dev/sda1 to $mydir
logger -t $ME mounting new /dev/sda1 to $mydir
logger -t xcat -p local4.info $ME mounting new /dev/sda1 to $mydir
mount /dev/sda1 $mydir
echo
echo Done!