Meanwhile we have 2025 and the bug is STILL THERE!

I have a host with LVM and 2 Linux partitions:

root@fextest01:/etc/default# lsblk -o NAME,SIZE,FSTYPE,LABEL,Mountpoint         
                                                                                
                                                                               
NAME                       SIZE FSTYPE      LABEL MOUNT                         
                                                                                
                                                                               
sr0                       1024M                                                 
                                                                                
                                                                               
vda                         50G                                                 
                                                                                
                                                                               
|-vda1                       1M                                                 
                                                                                
                                                                               
|-vda2                       2G ext4              /boot                         
                                                                                
                                                                               
`-vda3                      48G LVM2_member                                     
                                                                                
                                                                               
  |-ubuntu--vg-ubuntu--lv   24G ext4              /                             
                                                                                
                                                                               
  `-ubuntu--vg-U24          24G btrfs       U24                                 
                                                                                
                                                                               
                                                                                
                                                                                
                                                                               

root@fextest01:/etc/default# update-grub                                        
                                                                                
                                                                               
Sourcing file `/etc/default/grub'                                               
                                                                                
                                                                               
Generating grub configuration file ...                                          
                                                                                
                                                                               
Found linux image: /boot/vmlinuz-6.8.0-57-generic                               
                                                                                
                                                                               
Found initrd image: /boot/initrd.img-6.8.0-57-generic                           
                                                                                
                                                                               
Found linux image: /boot/vmlinuz-6.8.0-56-generic                               
                                                                                
                                                                               
Found initrd image: /boot/initrd.img-6.8.0-56-generic                           
                                                                                
                                                                               
Warning: os-prober will be executed to detect other bootable partitions.        
                                                                                
                                                                               
Its output will be used to detect bootable binaries on them and create new boot 
entries.                                                                        
                                                                               
Found Ubuntu 24.04.2 LTS (24.04) on /dev/mapper/ubuntu--vg-U24                  
                                                                                
                                                                               
Adding boot menu entry for UEFI Firmware Settings ...                           
                                                                                
                                                                               
done                                                                            
                                                                                
                                                                               


Looks ok so far, but when I reboot and select the second entry ubuntu--vg-U24 
in grub menu, then grub uses the wrong root partition 
/dev/mapper/ubuntu--vg-ubuntu--lv

I see in /boot/grub/grub.cfg :

### BEGIN /etc/grub.d/30_os-prober ###                                          
                                                                                
                                                                               
menuentry 'Ubuntu 24.04.2 LTS (24.04) (on /dev/mapper/ubuntu--vg-U24)' --class 
ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 
'osprober-gnulinux-simple-0021fed9-be1d-486e-8b3e-619955a39dea' {               
           
        insmod part_gpt                                                         
                                                                                
                                                                               
        insmod ext2                                                             
                                                                                
                                                                               
        search --no-floppy --fs-uuid --set=root 
25c4ca64-579d-4782-a55e-f66eacb131af                                            
                                                                                
                               
        linux /vmlinuz-6.8.0-57-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv 
ro console=ttyS0,115200                                                         
                                                                                
        initrd /initrd.img-6.8.0-57-generic                                     
                                                                                
                                                                               


There should be root=/dev/mapper/ubuntu--vg-U24 and not 
root=/dev/mapper/ubuntu--vg-ubuntu--lv !

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/508901

Title:
  update-grub sets wrong root argument

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/508901/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to