diff --git a/files/usr/local/sbin/install_pxe.sh b/files/usr/local/sbin/install_pxe.sh index fb0ce2b..46cee7a 100755 --- a/files/usr/local/sbin/install_pxe.sh +++ b/files/usr/local/sbin/install_pxe.sh @@ -66,7 +66,7 @@ fi if [ ! -z "$STATIC" ]; then INST_OPTIONS="ip=$IP::$GW:$MASK:$(hostname -s):$IF:off:${DNS/,*} ${INST_OPTIONS}" fi -if [ -f /boot/grub2/grub.cfg ]; then +if [ -f /boot/grub2/grub.cfg -o -f /boot/efi/EFI/centos/grub.cfg ]; then if [ $(sed 's/ /\n/g' /proc/cmdline | grep -c console) -gt 1 ]; then # echo "On ajoute les console pour avoir une config également en serial" CONSOLE="$(for i in `sed 's/ /\n/g' /proc/cmdline | grep console`; do echo -n "$i "; done | sed 's/ $//')" @@ -103,7 +103,7 @@ EOF CONFDIR=/boot/grub2 fi grub2-mkconfig --output="${CONFDIR}"/grub.cfg - grub2-reboot 'CentOS ${CENTOS_VERSION} Install (PXE)' + grub2-reboot "CentOS ${CENTOS_VERSION} Install (PXE)" elif [ -f /boot/grub/grub.conf ]; then cat >> /boot/grub/grub.conf <