bugGNU GRUB - Bugs: bug #41562, GRUB2.02~beta2 - does not take...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #41562: GRUB2.02~beta2 - does not take /etc/default/grub to build /boot/grub/grub.cfg

Submitted by:  Piotr <pklawit>
Submitted on:  Wed 12 Feb 2014 08:27:14 AM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Piotr
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Thu 13 Aug 2015 07:09:09 AM UTC, comment #4:

I have had the same problem - then i see the path in the grub.cfg.

My first problem was - there are no error message like "no ../default/grub found" or something.

And the second problem is, why i'm not able to change this Path - for example, in Debian the default path is /etc/default/grub

Regards,
Goofy

Goofy <goofy>
Wed 12 Feb 2014 11:05:08 AM UTC, comment #3:

Ok, I will reply to myself :-)

The path is mentioned in the /boot/grub/grub.cfg file:

#
# 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

I have created the /usr/local/etc/default/grub file on my virtual machine, executed update-grub and config is fine now!

Thanks a lot for pointing this simple solution :-)

Regards,
Piotr

Piotr <pklawit>
Wed 12 Feb 2014 10:41:50 AM UTC, comment #2:

Hello,

Well, I haven't found that path in the docs.

For now I can say, that the /usr/local/etc/default/grub is not
present on my PC. Should this have been created during new grub installation (make-install)?

Here is how it looks now:

root@mysiaki4:/usr/local/etc# pwd
/usr/local/etc
root@mysiaki4:/usr/local/etc# ls -als
total 16
4 drwxr-xr-x 4 root root 4096 lut 8 10:51 .
4 drwxr-xr-x 10 root root 4096 lut 13 2013 ..
4 drwxr-xr-x 2 root root 4096 lut 8 10:51 bash_completion.d
4 drwxr-xr-x 2 root root 4096 lut 8 10:51 grub.d
root@mysiaki4:/usr/local/etc#

Anyway, I will create the /usr/local/etc/default/grub afternoon and check.

Regards,
Piotr

Piotr <pklawit>
Wed 12 Feb 2014 10:31:53 AM UTC, comment #1:

In line with directory hierarchy /usr/local/etc/default/grub is used

Vladimir Serbinenko <phcoder>
Project Administrator
Wed 12 Feb 2014 08:27:14 AM UTC, original submission:

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.

Piotr <pklawit>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goofy (Posted a comment)
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by pklawit (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Feb 2014 10:31:53 AM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1