2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 02:08:25 +00:00

Add alternative location for grub preconfig

This commit is contained in:
Jarrod Johnson
2019-04-09 14:37:49 -04:00
parent ed7063b577
commit f07c819d5d

View File

@@ -30,4 +30,5 @@ if [ -f "/usr/lib/systemd/system/NetworkManager.service" ]; then
fi
GRUBOUT=$(find /boot -name grub.cfg)
sed -i -e 's/GRUB.*TERMINAL=.*/GRUB_TERMINAL="console"/' -e 's/GRUB_SERIAL_COMMAND=.*//' /etc/sysconfig/grub
sed -i -e 's/GRUB.*TERMINAL=.*/GRUB_TERMINAL="console"/' -e 's/GRUB_SERIAL_COMMAND=.*//' /etc/default/grub
grub2-mkconfig -o $GRUBOUT