bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: John Marquess
Subject: [bug #37418] update-grub does finds only one system on btrfs volume
Date: Fri, 21 Sep 2012 18:40:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.10 (KHTML, like Gecko) Chrome/23.0.1262.0 Safari/537.10

URL:
  <http://savannah.gnu.org/bugs/?37418>

                 Summary: update-grub does finds only one system on btrfs
volume
                 Project: GNU GRUB
            Submitted by: pancake
            Submitted on: Fri 21 Sep 2012 06:40:07 PM GMT
                Category: Filesystem
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 1.98
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37418>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]