bugGNU GRUB - Bugs: bug #37418, update-grub does finds only one...

 
 

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

bug #37418: update-grub does finds only one system on btrfs volume

Submitted by:  John Marquess <pancake>
Submitted on:  Fri 21 Sep 2012 06:40:07 PM UTC  
 
Category: FilesystemSeverity: Major
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 1.98Reproducibility: Every Time
Planned Release: None

Fri 21 Sep 2012 06:45:12 PM UTC, comment #1:

Finding other GNU/Linux systems is a job of os-prober, grub-mkconfig just uses its output.

Vladimir Serbinenko <phcoder>
Project Administrator
Fri 21 Sep 2012 06:40:07 PM UTC, original submission:

Grub and the working environment are installed on a btrfs subvolume. update-grub does not find any other linux systems on different subvolumens (same btrfs filesystem).

To reproduce on debian with btrfs-tools:
Have a spare device, say /dev/sdc1

mkfs.btrfs /dev/sdc1
mount /dev/sdc1 /mnt
btrfs subvol create /mnt/first
debootstrap unstable /mnt/first
mount --bind /dev /mnt/first/dev
mount --bind /proc /mnt/first/proc
mount --bind /sys /mnt/first/sys
chroot /mnt/first
apt-get install linux-image-3.2*
apt-get install grub2

At this point it correctly detects a single system on btrfs. Now
exit
btrfs subvol snapshot /mnt/first /mnt/second

This creates two distinct systems, yet
chroot /mnt/first
update-grub

Yields only a single result on btrfs volume. We can boot to the other one by changing /boot/grub/grub.cfg (s/first/second in rootflags=subvol=X) but it should detect different systems automatically. Also does not work when installing two distinct systems instead of cloning one as demonstrated here.

John Marquess <pancake>

 

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 phcoder (Posted a comment)
  • -unavailable- added by pancake (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
    Fri 21 Sep 2012 06:45:12 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1