This commit is contained in:
parent
b65195e0e9
commit
d369949981
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ fi
|
||||||
if [ ! -z "$STATIC" ]; then
|
if [ ! -z "$STATIC" ]; then
|
||||||
INST_OPTIONS="ip=$IP::$GW:$MASK:$(hostname -s):$IF:off:${DNS/,*} ${INST_OPTIONS}"
|
INST_OPTIONS="ip=$IP::$GW:$MASK:$(hostname -s):$IF:off:${DNS/,*} ${INST_OPTIONS}"
|
||||||
fi
|
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
|
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"
|
# 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/ $//')"
|
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
|
CONFDIR=/boot/grub2
|
||||||
fi
|
fi
|
||||||
grub2-mkconfig --output="${CONFDIR}"/grub.cfg
|
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
|
elif [ -f /boot/grub/grub.conf ]; then
|
||||||
cat >> /boot/grub/grub.conf <<EOF
|
cat >> /boot/grub/grub.conf <<EOF
|
||||||
title CentOS ${CENTOS_VERSION} Install (PXE)
|
title CentOS ${CENTOS_VERSION} Install (PXE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue