Bug 863468

Summary: osinfo udev rules are broken
Product: [Fedora] Fedora Reporter: David Zeuthen <davidz>
Component: libosinfoAssignee: Daniel Berrangé <berrange>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: berrange, cfergeau, crobinso, mclasen, virt-maint, zeenix
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-12 16:16:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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