bugGNU GRUB - Bugs: bug #32603, update-grub does not recognize all...

 
 

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

bug #32603: update-grub does not recognize all OSs from live-session

Submitted by:  Yann <yannubuntu>
Submitted on:  Sat 26 Feb 2011 04:31:07 AM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 1.98Reproducibility: Every Time
Planned Release: None

Mon 07 Mar 2011 10:27:30 AM UTC, comment #2:

Vladimir, thank you very much for your wise answer.
Unmounting the partitions before entering the chroot was the solution.

Thanks to this, we could create a stable version of the following tool :
http://ubuntuforums.org/showthread.php?t=1615667

(it is heavily related to GRUB and MBR, any suggestions are welcome ! )

Yann <yannubuntu>
Sat 26 Feb 2011 08:46:33 AM UTC, comment #1:

You should run os-prober from inside of chroot to get a meaningful comparison. The problem is that os-prober can't remount in chroot a partition which is already mounted in the host

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 26 Feb 2011 04:31:07 AM UTC, original submission:

Dear all

I am developping a software running on a Debian-based (e.g. Ubuntu 10.10) live-CD, that needs to update GRUB of any installed Linux.

Here is how I proceed :
mount /dev/${OS_PARTITION} /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt/ bash update-grub
umount /mnt/dev
umount /mnt/proc
umount /mnt/sys
umount /mnt

Result : GRUB is updated but it does not detect all OSs (Linux installed on internal disks are recognized, but not Linux on USB disks, and sometimes nor Windows on internal disk)
Expected result : the updated GRUB detect all OSs

For information:
- "sudo os-prober" (from the live-session) detects all OSs.
- when I boot into any Linux then launch "sudo update-grub", all OSs are detected.

Is it a GRUB bug , or am I missing something in the way to chroot ?

Yann <yannubuntu>

 

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 yannubuntu (Submitted the item)
  • -unavailable- added by yannubuntu
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 23 Mar 2011 11:33:07 AM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sat 26 Feb 2011 04:31:08 AM UTCyannubuntuCarbon-Copy-=>Added yannubuntu

    Back to the top


    Powered by Savane 3.1-cleanup1