Bug 770393 - os-prober has unecessary dependencies
Summary: os-prober has unecessary dependencies
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: os-prober
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Hedayat Vatankhah
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-26 09:46 UTC by Peter Hjalmarsson
Modified: 2012-01-22 22:56 UTC (History)
1 user (show)

Fixed In Version: os-prober-1.48-2.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-22 22:56:55 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.