Merge "Update GRUB_MKCONFIG for detecting what's installed"
This commit is contained in:
commit
b10752ca71
1 changed files with 5 additions and 1 deletions
|
@ -137,7 +137,11 @@ function install_grub2 {
|
|||
echo 'GRUB_GFXPAYLOAD_LINUX=text' >>/etc/default/grub
|
||||
echo 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200 no_timer_check"' >>/etc/default/grub
|
||||
echo 'GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"' >>/etc/default/grub
|
||||
GRUB_MKCONFIG="grub2-mkconfig -o $GRUB_CFG"
|
||||
if which grub2-mkconfig >/dev/null; then
|
||||
GRUB_MKCONFIG="grub2-mkconfig -o $GRUB_CFG"
|
||||
else
|
||||
GRUB_MKCONFIG="grub-mkconfig -o $GRUB_CFG"
|
||||
fi
|
||||
DISTRO_NAME=${DISTRO_NAME:-}
|
||||
case $DISTRO_NAME in
|
||||
'ubuntu'|'debian')
|
||||
|
|
Loading…
Reference in a new issue