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

Submitter:  John Marquess <pancake>
Submitted:  Fri 21 Sep 2012 06:40:07 PM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  1.98
Release:  Reproducibility:  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>
Group 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>

 

(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 phcoder (Posted a comment)
  • -email is unavailable- added by pancake (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
    2012-09-21 phcoder StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code