From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Wed, 21 Mar 2007 18:20:50 +0000 Subject: [PATCH] Let persistent-cd rules use by-id for usb/firewire Message-Id: <200703211920.50772.zzam@gentoo.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="Boundary-00=_CeXAGzCikyakqye" List-Id: To: linux-hotplug@vger.kernel.org --Boundary-00=_CeXAGzCikyakqye Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! I suggest to let extras/rule_generator/75-cd-aliases-generator.rules use by-id for usb/firewire devices. Attached patch contains a (at least for me) working solution. Matthias -- Matthias Schwarzott (zzam) --Boundary-00=_CeXAGzCikyakqye Content-Type: text/x-diff; charset="utf-8"; name="udev-106-usbcd-by-id.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="udev-106-usbcd-by-id.patch" diff --git a/extras/rule_generator/75-cd-aliases-generator.rules b/extras/rule_generator/75-cd-aliases-generator.rules index c3eb887..df44d31 100644 --- a/extras/rule_generator/75-cd-aliases-generator.rules +++ b/extras/rule_generator/75-cd-aliases-generator.rules @@ -1,3 +1,4 @@ # these rules generate rules for the /dev/{cdrom,dvd,...} symlinks -ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules", SYMLINK+="%c" +ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", SUBSYSTEMS=="usb|ieee1394", ENV{ID_CDROM_PERSISTENCE_METHOD}="by-id" +ACTION=="add", SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{GENERATED}!="?*", PROGRAM="write_cd_rules $env{ID_CDROM_PERSISTENCE_METHOD}", SYMLINK+="%c" --Boundary-00=_CeXAGzCikyakqye Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --Boundary-00=_CeXAGzCikyakqye Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel --Boundary-00=_CeXAGzCikyakqye--