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:
@@ -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
|
||||
|
Reference in New Issue
Block a user