bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #41562] GRUB2.02~beta2 - does not take /etc/default/grub to build /


From: Piotr
Subject: [bug #41562] GRUB2.02~beta2 - does not take /etc/default/grub to build /boot/grub/grub.cfg
Date: Wed, 12 Feb 2014 08:27:15 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0

URL:
  <http://savannah.gnu.org/bugs/?41562>

                 Summary: GRUB2.02~beta2 - does not take /etc/default/grub to
build /boot/grub/grub.cfg
                 Project: GNU GRUB
            Submitted by: pklawit
            Submitted on: Wed 12 Feb 2014 08:27:14 AM GMT
                Category: Configuration
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Piotr
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: other
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

Hello,

To get the RS-232 port on PCI-Express card working as GRUB console I have
downloaded the latest development release of GRUB2.

I have downloaded the most recent version with: 
git clone git://git.savannah.gnu.org/grub.git

The actual version is GNU GRUB 2.02~beta2

I have downloaded all mentioned packages/libraries.
Compilation was successful (autogen.sh, configure, make, make-install).

Then I did: 
grub-install /dev/sda
grub-install /dev/sdb

to install the new GRUB2 on both HDDs working as RAID1 device.

Then:
upgrade-grub

to generate new /boot/grub/grub.cfg

Then sync;sync;reboot.

System started with the new GRUB - I can see the version 2.02~beta2 at the top
of the screen.
The problem is, that instead of "normal" menu I saw new one, with Advanced
submenus etc.

I have found, that putting the:
GRUB_ENABLE_SUBMENU=false

in /etc/default/grub shuld bring back the simple menu structure,
but it didn't.
Later i have noticed, that none of the parameters configured in the
/etc/default/grub are taken into account, when I execute the update-grub
command.
Even the option GRUB_TIMEOUT is not being used - I have set it to 30 seconds,
but after update-grub and reboot I still have the Advanced menu structure and
5 seconds timeout in GRUB after restart.
No "serial" related info in the /boot/grub/grub.cfg.

Here is my /etc/default/grub configuration file, that I have used:

=================================================
# 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_ENABLE_SUBMENU=false
GRUB_DEFAULT=0
GRUB_TIMEOUT=30
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS4,115200n8"

GRUB_TERMINAL="console serial"
GRUB_SERIAL_COMMAND="serial --port=0xb880 --speed=115200"
GRUB_TERMINAL_INPUT="console serial_portb880"
GRUB_TERMINAL_OUTPUT="console serial_portb880"

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

And here is the /boot/grub/grub.cfg that has been created after executing
update-grub:

=======================================================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
#

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  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 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 msdos
insmod diskfilter mdraid1x
insmod ext2
set root='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root
--hint='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d' 
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
else
  search --no-floppy --fs-uuid --set=root
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
fi
    font="/boot/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 [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os
$menuentry_id_option 'gnulinux-simple-2cb2b9c0-fb80-4f39-9055-29f88c2288e4' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos msdos
        insmod diskfilter mdraid1x
        insmod ext2
        set root='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root
--hint='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d' 
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
        else
          search --no-floppy --fs-uuid --set=root
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
        fi
        echo    'Loading Linux 3.5.0-45-generic ...'
        linux   /boot/vmlinuz-3.5.0-45-generic
root=UUID=2cb2b9c0-fb80-4f39-9055-29f88c2288e4 ro
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.5.0-45-generic
}
submenu 'Advanced options for GNU/Linux' $menuentry_id_option
'gnulinux-advanced-2cb2b9c0-fb80-4f39-9055-29f88c2288e4' {
        menuentry 'GNU/Linux, with Linux 3.5.0-45-generic' --class gnu-linux
--class gnu --class os $menuentry_id_option
'gnulinux-3.5.0-45-generic-advanced-2cb2b9c0-fb80-4f39-9055-29f88c2288e4' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos msdos
                insmod diskfilter mdraid1x
                insmod ext2
                set root='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root
--hint='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d' 
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                else
                  search --no-floppy --fs-uuid --set=root
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                fi
                echo    'Loading Linux 3.5.0-45-generic ...'
                linux   /boot/vmlinuz-3.5.0-45-generic
root=UUID=2cb2b9c0-fb80-4f39-9055-29f88c2288e4 ro
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.5.0-45-generic
        }
        menuentry 'GNU/Linux, with Linux 3.5.0-45-generic (recovery mode)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.5.0-45-generic-recovery-2cb2b9c0-fb80-4f39-9055-29f88c2288e4' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos msdos
                insmod diskfilter mdraid1x
                insmod ext2
                set root='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root
--hint='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d' 
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                else
                  search --no-floppy --fs-uuid --set=root
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                fi
                echo    'Loading Linux 3.5.0-45-generic ...'
                linux   /boot/vmlinuz-3.5.0-45-generic
root=UUID=2cb2b9c0-fb80-4f39-9055-29f88c2288e4 ro single
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.5.0-45-generic
        }
        menuentry 'GNU/Linux, with Linux 3.5.0-36-generic' --class gnu-linux
--class gnu --class os $menuentry_id_option
'gnulinux-3.5.0-36-generic-advanced-2cb2b9c0-fb80-4f39-9055-29f88c2288e4' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos msdos
                insmod diskfilter mdraid1x
                insmod ext2
                set root='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root
--hint='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d' 
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                else
                  search --no-floppy --fs-uuid --set=root
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                fi
                echo    'Loading Linux 3.5.0-36-generic ...'
                linux   /boot/vmlinuz-3.5.0-36-generic
root=UUID=2cb2b9c0-fb80-4f39-9055-29f88c2288e4 ro
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.5.0-36-generic
        }
        menuentry 'GNU/Linux, with Linux 3.5.0-36-generic (recovery mode)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.5.0-36-generic-recovery-2cb2b9c0-fb80-4f39-9055-29f88c2288e4' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_msdos msdos
                insmod diskfilter mdraid1x
                insmod ext2
                set root='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root
--hint='mduuid/f0d7cff3dbc9fc91fa853205ef834a0d' 
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                else
                  search --no-floppy --fs-uuid --set=root
2cb2b9c0-fb80-4f39-9055-29f88c2288e4
                fi
                echo    'Loading Linux 3.5.0-36-generic ...'
                linux   /boot/vmlinuz-3.5.0-36-generic
root=UUID=2cb2b9c0-fb80-4f39-9055-29f88c2288e4 ro single
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.5.0-36-generic
        }
}

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

### BEGIN /usr/local/etc/grub.d/20_linux_xen ###

### END /usr/local/etc/grub.d/20_linux_xen ###

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/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 /usr/local/etc/grub.d/40_custom ###

### BEGIN /usr/local/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 /usr/local/etc/grub.d/41_custom ###
==============================================================



The same problem has been observed on two machines:
1. My home WEB server:
Ubuntu 12.04LTS 64bit, 2 HDDs (Samsung 1TB each) working in RAID1 config
(mdadm).
Xeon X58 CPU.
Motherboard: Sapphire Pure Black X58
6GB RAM

2. Virtual PC (VirtualBox) running also Ubuntu 12.04 LTS - 64 bit.
1GB RAM
Simple HDD config - one virtual disk, no raid.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41562>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]