bugGNU GRUB - Bugs: bug #43390, update-grub: mess in menuentry in...

 
 

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

bug #43390: update-grub: mess in menuentry in grub.cfg

Submitter:  Aleksey Midenkov <midenok>
Submitted:  Thu 09 Oct 2014 10:35:13 AM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  2.02~beta1
Release:  Reproducibility:  None
Planned Release:  None

Tue 18 Nov 2014 02:34:42 PM UTC, comment #1: 

The generated configuration looks correct (cosmetic issue is multiple "insmod lvm"). Proposed change is either cosmetic (use of $root) or invalid (missing UUID in search, root=$root is not going to work on kernel command line).

Andrei Borzenkov <arvidjaar>
Group Member
Thu 09 Oct 2014 10:35:13 AM UTC, original submission:  

After `update-grub` the following output is generated:

```
 menuentry 'Ubuntu, with Linux 2.6.35-22-generic (on /dev/mapper/vvg0-root)'\'' --class gnu-linux --class gnu --class os $menuentry_id_option '\''osprober-gnulinux-/boot/vmlinuz-2.6.35-22-generic--0ed5e93c-99f4-48ec-8b13-1b34b52852f5 (on /dev/mapper/vvg0-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.35-22-generic--0ed5e93c-99f4-48ec-8b13-1b34b52852f5' {
  insmod lvm
  insmod lvm
  insmod ext2
  set root='lvmid/ODtXBF-9DiG-LZ2p-dI92-qJZc-9G9g-XBmgcH/grLDh5-eAcC-DEZU-gEcc-QoBR-OUlI-ik2t1l'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='lvmid/ODtXBF-9DiG-LZ2p-dI92-qJZc-9G9g-XBmgcH/grLDh5-eAcC-DEZU-gEcc-QoBR-OUlI-ik2t1l' 0ed5e93c-99f4-48ec-8b13-1b34b52852f5
  else
    search --no-floppy --fs-uuid --set=root 0ed5e93c-99f4-48ec-8b13-1b34b52852f5
  fi
  linux /boot/vmlinuz-2.6.35-22-generic root=UUID=e673fbdf-b413-4ac9-b05c-574aa15535e4 ro vga=normal nomodeset crashkernel=384M-2G:64M,2G-:128M nosplash
  initrd /boot/initrd.img-2.6.35-22-generic
 }
```

Note, that 'insmod lvm' is done two times. $root variable is ignored! root option is passed like 'root=UUID=e673fbdf-b413-4ac9-b05c-574aa15535e4', all root magic from above is ignored which leads to wrong mounted root filesystem.

The proper menuentry should look like:

```
 menuentry 'Ubuntu, with Linux 2.6.35-22-generic (on /dev/mapper/vvg0-root)'\'' --class gnu-linux --class gnu --class os $menuentry_id_option '\''osprober-gnulinux-/boot/vmlinuz-2.6.35-22-generic--0ed5e93c-99f4-48ec-8b13-1b34b52852f5 (on /dev/mapper/vvg0-root)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-2.6.35-22-generic--0ed5e93c-99f4-48ec-8b13-1b34b52852f5' {
  insmod lvm
  insmod ext2
  set root='lvmid/ODtXBF-9DiG-LZ2p-dI92-qJZc-9G9g-XBmgcH/grLDh5-eAcC-DEZU-gEcc-QoBR-OUlI-ik2t1l'
  if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint=$root 0ed5e93c-99f4-48ec-8b13-1b34b52852f5
  else
    search --no-floppy --fs-uuid --set=root $root
  fi
  linux /boot/vmlinuz-2.6.35-22-generic root=$root ro vga=normal nomodeset crashkernel=384M-2G:64M,2G-:128M nosplash
  initrd /boot/initrd.img-2.6.35-22-generic
 }
```

Version: 2.02~beta2-9ubuntu1

Aleksey Midenkov <midenok>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by midenok (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-18 arvidjaar StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code