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

Submitted by:  Aleksey Midenkov <midenok>
Submitted on:  Thu 09 Oct 2014 10:35:13 AM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 2.02~beta1Reproducibility: 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>
Project 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>

 

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 arvidjaar (Posted a comment)
  • -unavailable- added by midenok (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
    Tue 18 Nov 2014 02:34:42 PM UTCarvidjaarStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1