Bug 770393

Summary: os-prober has unecessary dependencies
Product: [Fedora] Fedora Reporter: Peter Hjalmarsson <kanelxake>
Component: os-proberAssignee: Hedayat Vatankhah <hedayatv>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: hedayatv
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: os-prober-1.48-2.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-22 22:56:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Peter Hjalmarsson 2011-12-26 09:46:33 UTC
Description of problem:
os-prober has some runtime dependencies like lvm2, dmraid and mdadm.
On a system where you do not use any of said packages these are just bloat.

Now since grub2 depends directly on os-prober (which you also can argue that it should not) removing any of above mentioned packages means that yum at the same time removes grub2, and I do not think I need to tell you why this is bad.

Examples of systems where I see no use of os-prober or its dependencies:
* Laptop (I have a dual boot laptop without any possibility for raid, and I do not use lvm2 either on it)
* Virtual machines (I tend to have one OS per Virt-env and since in most of them raid really is something I leave for the host there really is no need for os-prober, dmraid nor mdadm).

All these packages really are only runtime dependencies, meaning that removing them makes os-prober/grub2-mkconfig just skip that part and continue with everything else.

So could you please consider maybe add/keep mdadm/dmraid/lvm2 in the base-set but removing these dependencies from the actual packages, this so it gets installed by default, but you may remove them depending on necessity. 

Version-Release number of selected component (if applicable):
os-prober-1.48-1.fc16.x86_64
grub2-1.99-12.fc16.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install Fedora 16 and make sure it uses grub2
2. Try to "yum erase" lvm2, mdadm and/or dmraid
  
Actual results:
It wants you to also uninstall os-prober and grub2

Expected results:
It should not want to remove grub2

Additional info:
As I mentioned, all these are only RUNTIME dependencies, so there are really no need for them to be installed just to get grub2/os-prober working.

Comment 1 Hedayat Vatankhah 2012-01-21 20:11:49 UTC
Hmmm... looks reasonable. Thanks for the report. I'll remove those dependencies in the next update.

Comment 2 Hedayat Vatankhah 2012-01-21 20:13:55 UTC
Hmmm... looks reasonable. Thanks for the report. I'll remove those dependencies in the next update.

Comment 3 Fedora Update System 2012-01-21 21:31:26 UTC
os-prober-1.48-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/os-prober-1.48-2.fc16

Comment 4 Fedora Update System 2012-01-22 05:26:38 UTC
Package os-prober-1.48-2.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing os-prober-1.48-2.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-0778/os-prober-1.48-2.fc16
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-01-22 22:56:55 UTC
os-prober-1.48-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.