Comment 4 for bug 278067

Revision history for this message
Toby Long-Leather (tobyll) wrote :

Rather than commenting out the merge key line as you have done above, you can move the E220 section inside the <match key="storage.drive_type" string="cdrom"></match> clause, which will remove the fake-cd-drive entry. It doesn't work if you put it inside the <match key="storage.lun" int="1"></match> clause, probably because it has a different LUN, but I don't know how to work out what the LUN is.

Example:

    <match key="storage.bus" string="usb">
      <match key="storage.drive_type" string="cdrom">
        <!-- Ignore the Huawei E220 USB HSDPA modem -->
        <match key="@storage.originating_device:usb.vendor_id" int="0x12d1">
          <match key="@storage.originating_device:usb.product_id" int="0x1003">
            <merge key="info.ignore" type="bool">true</merge>
          </match>
        </match>
        <match key="storage.lun" int="1">
          <!-- Rest of file continues ... -->