update-grub does not create btrfs menuentry in grub.cfg

Bug #887836 reported by martin suchanek
92
This bug affects 24 people
Affects Status Importance Assigned to Milestone
os-prober
New
Unknown
os-prober (Ubuntu)
Triaged
High
Unassigned

Bug Description

Hi,

I have noticed that update-grub have never been generating menuentry in grub.cfg for btrfs ubuntu oneiric 64bit instance. This happens when I run update-grub on another ubuntu instance , does not matter if ext4 or btrfs.
(I have to manually change 40_custom for new installed kernels )
Could you confirm if it is bug or I messed up something ?

thank you,
regards,
Martin
---
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
DistroRelease: Ubuntu 11.10
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
NonfreeKernelModules: fglrx
Package: os-prober 1.49ubuntu1
PackageArchitecture: amd64
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.0.0-17.30~pre201203010400-generic 3.0.22
Tags: oneiric
Uname: Linux 3.0.0-17-generic x86_64
UpgradeStatus: Upgraded to oneiric on 2011-10-15 (141 days ago)
UserGroups: adm admin audio backup cdrom clamav dialout disk games kvm libuuid lpadmin plugdev proxy pulse pulse-access sambashare syslog users utmp vboxusers video www-data

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in os-prober (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexander Fougner (fougner) wrote :

Hi Martin, could you please run the following in a terminal?
apport-collect 887836

Also, I'm running update-grub in oneiric and it doesn't recognize my btrfs partition with 12.04 dev on it.

Revision history for this message
martin suchanek (martin-suc) wrote : Dependencies.txt

apport information

tags: added: apport-collected oneiric
description: updated
Revision history for this message
martin suchanek (martin-suc) wrote :

Hi,

Would it be possible to post some info about it ?
if you use gpt partition ?
structure of OS instance which is NOT going to include in grub.conf by update-grub:
bios_grub /dev/??? and partition type ?
boot /dev/??? and partition type ?
root / /dev/??? and partition type (btrfrs or ext4) ?

thank you,
regards,
Martin

Revision history for this message
Gary M (garym) wrote :

Please set this status back to "Confirmed" after martin's questions in comment #4 have been answered.

Changed in os-prober (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
bitinerant (bitinerant) wrote :

I believe this bug explains why I can't boot from sda1. I installed a 'normal' Ubuntu 12.04 with Btrfs on sda1 and it worked fine. I let the installer create the partition table; GParted says it is 'msdos'. I then installed a crypt-luks Ubuntu 12.04 with /boot on sda2 (Ext2), encrypted swap on sda3, and root on sda4 (Btrfs). The 'update-grub' command finds my encrypted installation and it works fine, but it never finds the original sda1 Btrfs partition and I haven't been able to boot from it since I installed the second Ubuntu.

Output of 'fdisk -l' and 'update-grub' is attached. Martin, is there anything else you'd like to know about an effected system? Is there a work-around?

Revision history for this message
martin suchanek (martin-suc) wrote :

Hi, I did not find work-around.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for os-prober (Ubuntu) because there has been no activity for 60 days.]

Changed in os-prober (Ubuntu):
status: Incomplete → Expired
Revision history for this message
martin suchanek (martin-suc) wrote :

Hm, this problem is still in even after many new grub packages have been released/installed within and after quantal distribution.
Does anybody know some grub tweaking to do it ?

Changed in os-prober (Ubuntu):
status: Expired → Confirmed
Revision history for this message
Tamas Papp (tompos) wrote :

Atill exists on Raring.

Revision history for this message
martin suchanek (martin-suc) wrote :

indeed, raring has the same problem even new version of grub has been installed.
notice:
update-grub is generating menuentry for raid0 btrfs .

Revision history for this message
martin suchanek (martin-suc) wrote :

Well , It is 2015 year (ubuntu 15.04 , 15.10). btrfs version 4.1.2 and update-grub still does not detecting btrfs partition.

tags: added: vivid wily
Changed in os-prober (Ubuntu):
importance: Undecided → High
no longer affects: os-prober
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

Please:

1. Report this bug to <https://www.debian.org/Bugs/>.
2. Paste the new report link here.
3. Set this bug status back to "confirmed".

Thank you.

Changed in os-prober (Ubuntu):
status: Confirmed → Incomplete
tags: added: asked-to-upstream
Revision history for this message
José Luis Bolos (joseluisbolos) wrote :

Probably already covered by this Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688336

Changed in os-prober:
status: New → Confirmed
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

@ José Luis Bolos

Thank you 😉

Changed in os-prober:
importance: Undecided → Unknown
status: Confirmed → Unknown
Changed in os-prober (Ubuntu):
status: Incomplete → Triaged
Changed in os-prober:
status: Unknown → New
Revision history for this message
dino99 (9d9) wrote :
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/887836

tags: added: iso-testing
Revision history for this message
Vishal Rao (vishalrao) wrote :

As of Ubuntu Jammy , it appears the issue is os-prober not handling btrfs subvolumes other than the main ID 5 subvol... So if another OS is installed with /@ as root , it does not recognise it.

See https://aur.archlinux.org/cgit/aur.git/tree/os-prober-btrfsfix.patch?h=os-prober-btrfs for the Arch version of the patch (also attached)

Revision history for this message
Vishal Rao (vishalrao) wrote :

Just a follow-up note to mention I tried the patch in my previous comment and it has fixed os-prober package in Jammy!

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Fixed in Arch distro" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.