Not really the point.
I do however prefer to trust an explicit indication in ENV{DEVTYPE} rather than
to guess device type based on device naming.
And so does the standard scsi rules.
BR
Per
On 14 May 2015, at 9:20 , Robert Milasan <[email protected]> wrote:
> On Thu, 14 May 2015 09:10:40 +0200
> "Per Bergqvist" <[email protected]> wrote:
>>
>> +KERNEL=="nvme*",ENV{DEVTYPE}=="disk", ENV{ID_SCSI_SERIAL}=="?*",
>
> Wouldn't this make sense: KERNEL=="nvme*[!0-9]" (this is disk)
>
>> +KERNEL=="nvme*",ENV{DEVTYPE}=="partition", ENV{ID_SCSI_SERIAL}=="?*",
>
> and this KERNEL=="nvme*[0-9]" (this is partition) ?
>
>
> --
> Robert Milasan
>
> L3 Support Engineer
> SUSE Linux (http://www.suse.com)
> email: [email protected]
> GPG fingerprint: B6FE F4A8 0FA3 3040 3402 6FE7 2F64 167C 1909 6D1A
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel