2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 18:00:38 +00:00

fix issue [FVT]: sed: can't read /boot/grub/grub.conf in servicenode log file #1730

This commit is contained in:
immarvin
2016-09-27 10:26:13 +08:00
parent 59dbe911e5
commit e35ef729be

View File

@ -434,8 +434,8 @@ EOF
fi
sed -i '/127.0.1.1/d' /etc/hosts
else
sed -i 's/^serial/#serial/' /boot/grub/grub.conf
sed -i 's/^terminal/#terminal/' /boot/grub/grub.conf
[ -f /boot/grub/grub.conf ] && sed -i 's/^serial/#serial/' /boot/grub/grub.conf
[ -f /boot/grub/grub.conf ] && sed -i 's/^terminal/#terminal/' /boot/grub/grub.conf
if [ "$XCATDEBUGMODE" = "1" ] || [ "$XCATDEBUGMODE" = "2" ]; then
msgutil_r "$MASTER_IP" "debug" "/boot/grub/grub.conf updated" "/var/log/xcat/xcat.log"
fi