I've got the patch below from a debian user. Unfortunately i don't have a ZIP
drive, so could someone check if it's correct in all cases ? (David?)

----- Forwarded message from Daniel Serpell <[EMAIL PROTECTED]> -----

Date: Mon, 07 Feb 2005 10:59:38 -0300
From: Daniel Serpell <[EMAIL PROTECTED]>
Subject: Bug#294033: hal: usb zip drives are incorrectly named.
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Reply-To: Daniel Serpell <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
X-Mailer: reportbug 3.7.1

The FDI rule that detects USB ZIP drive and names the mountpoint is
incorrectly write, so partitioned ZIP's are named generically.

The attached patch fixes the test (lookup in the parent of the
partition).

--- 90defaultpolicy/storage-policy.fdi.orig  2005-01-31 21:10:50 -0300
+++ 90defaultpolicy/storage-policy.fdi       2005-01-31 21:13:17 -0300
@@ -119,8 +119,8 @@
          <append key="volume.policy.desired_mount_point" 
type="string">disk</append>

          <!-- zip drives -->
-         <match key="storage.drive_type" string="zip">
-          <merge key="storage.policy.desired_mount_point" 
type="string">zip</merge>
+         <match key="@block.storage_device:storage.drive_type" string="zip">
+          <merge key="volume.policy.desired_mount_point" 
type="string">zip</merge>
          </match>

           <!-- Best: If available use filesystem label -->


  Sjoerd
-- 
Did you hear that two rabbits escaped from the zoo and so far they have
only recaptured 116 of them?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to