Kodibuntu unable to remove the grub
#1
I am a total Linux noob, so it is probably something simple that I'm missing but I have exhausted all search options and nothing has worked. And possibly I am posting this in the wrong place, so my apologies if that is the case.

The issue I am having is with the Ubuntu shell and not with Kodi itself. I am unable to get the grub at startup to disappear. It has been there since installation and is persistent after two clean installs. The grub being there is an issue as the machine running Kodi is controlled via touchscreen and remote, so no option to select anything in the grub, and the grub never times out.

I did a clean install of Kodibuntu and updated it as outlined by the wiki (sudo apt-get update && sudo apt-get upgrade). So the machine is now running Ubuntu 14.04 up to date as of 2016-08-17.

When I boot I see the following options without a timeout counter or anything:
Code:
[  ] Ubuntu
[  ] Advanced options for Ubuntu with
[  ] Memory test (memtest86x)
[  ] Memory test (memtest86x. serial console 11520)

The content of "grub":
Code:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_TIMEOUT_STYLE=countdown
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_RECORDFAIL_TIMEOUT=1


The content of "grub.cfg":
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  801c66b8-e7e0-4b85-b050-aa5b1104ee11
else
  search --no-floppy --fs-uuid --set=root 801c66b8-e7e0-4b85-b050-aa5b1104ee11
fi
    font="/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=countdown
    set timeout=1
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 1 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
    set gfxpayload="${1}"
    if [ "${1}" = "keep" ]; then
        set vt_handoff=vt.handoff=7
    else
        set vt_handoff=
    fi
}
set linux_gfx_mode=keep
export linux_gfx_mode

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

I followed several 'solutions' I found online, but nothing seems to work. I changed the grub file, moved several files (with number 30) from /etc/grub.d and ran "sudo update-grub" and saw "grub.cfg" update to what you see above. I would expect there to be no options like memtest in the grub anymore, but yet they are still appearing.

Also, setting "GRUB_HIDDEN_TIMEOUT_QUIET=false" and "GRUB_TIMEOUT=1" has no effect.

Does anybody know how I could get the grub to timeout (or better yet, not to show up at all)?
Reply
#2
Try ubuntu forums, nothing to do with kodi.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
I figured as much, just thought maybe it is something you have come across more often as this behaviour was there from the moment of installing. Thank you for replying.
Reply
#4
It must be something peculiar to your setup I think.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#5
It took a while to wfigure out the same issue here. Disabling quickboot is what fixed it for me

http://askubuntu.com/questions/469347/ho...untu-14-04
Reply
#6
(2016-08-17, 08:49)teeedubb Wrote: It took a while to wfigure out the same issue here. Disabling quickboot is what fixed it for me

http://askubuntu.com/questions/469347/ho...untu-14-04
Thank you for your reply. Unfortunately changing quick_boot to 0 didn't change anything for me. I think quick_boot is used to determine if the system should force the grub to show after an error. I think what is happening on my system is that all the settings of the grub files are being ignored. I just have no idea why.
Reply
#7
I found a fix: I installed grub again:
Code:
sudo grub-install /dev/sda
This did remove the nice Kodi splashscreens and replaced them with code running down the screen, but it works! Now the grub uses the settings generated in grub.cfg.
Reply

Logout Mark Read Team Forum Stats Members Help
Kodibuntu unable to remove the grub0