On Fri, Jun 22, 2007 at 07:04:37PM +0200, Jens Dreger wrote: > What format would be apropriate to activate this feature? I'd use > something like: > > disk_config serial=4MR4PM9S > > in the disk_config file.
Ok, I have changed setup_harddisks now to accept a config line like: disk_config /dev/disk/by-id/scsi-SATA_ST3160811AS_3PT03819 or: disk_config /dev/disk/by-id/*_3PT03819 It will simply expand globs and follow links until it finds the actual device which is then used in the otherwise unchanged setup_harddisks code. Example: [EMAIL PROTECTED]:~> grep ^disk_config TEST1 disk_config /dev/disk/by-id/*_3PT03819 [EMAIL PROTECTED]:~> debug=1 ./setup_harddisks -f TEST1 [...] INPUT: disk_config /dev/disk/by-id/*_3PT03819 DEBUG: paras=/dev/disk/by-id/*_3PT03819 DEBUG: glob detected. expanding => /dev/disk/by-id/scsi-SATA_ST3160811AS_3PT03819 DEBUG: symlink detected. following => /dev/sda config: sda [EMAIL PROTECTED]:~> grep ^disk_config TEST2 disk_config /dev/disk/by-id/scsi-SATA_ST3160811AS_3PT03819 [EMAIL PROTECTED]:~> debug=1 ./setup_harddisks -f TEST2 [...] INPUT: disk_config /dev/disk/by-id/scsi-SATA_ST3160811AS_3PT03819 DEBUG: paras=/dev/disk/by-id/scsi-SATA_ST3160811AS_3PT03819 DEBUG: symlink detected. following => /dev/sda config: sda This way it's easy to use all kinds of symlinks udev provides. If anyone is interested, I'll file a wishlist bug with the patch. Regards, Jens. -- Jens Dreger Freie Universitaet Berlin [EMAIL PROTECTED] Fachbereich Physik - ZEDV Tel: +49 30 83854774 Arnimallee 14 Fax: +49 30 83855902 14195 Berlin