Bug 863468 - osinfo udev rules are broken
Summary: osinfo udev rules are broken
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libosinfo
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-05 14:32 UTC by David Zeuthen
Modified: 2013-03-06 04:09 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-12 16:16:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Zeuthen 2012-10-05 14:32:11 UTC
The udev rules for detecting OS'es are too complicated and they also don't work when detecting OS'es on e.g. a loop device. For example, the stuff about DISK_MEDIA_CHANGE is kinda wrong 

The latter is pretty annoying as the default action in F18 for an .ISO file is to loopback mount it - as a result the user is presented with "Open with Files" instead of "Open with Boxes".

All you need is this simple rule

 SUBSYSTEM=="block", ACTION=="add|change", ENV{ID_FS_TYPE}=="iso9660|udf", IMPORT{program}="/usr/bin/osinfo-detect -f env $tempnode"

Comment 1 Christophe Fergeau 2012-10-08 13:58:37 UTC
Forwarded this change upstream https://www.redhat.com/archives/virt-tools-list/2012-October/msg00057.html

Comment 2 Cole Robinson 2013-02-12 16:16:20 UTC
This was applied upstream and is in F18/rawhide


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