sg3_utils icon indicating copy to clipboard operation
sg3_utils copied to clipboard

udev rules: avoid spurious warning for non-SCSI devices

Open mwilck opened this issue 1 year ago • 1 comments

The udev rules spit out lots of warnings like this:

55-scsi-sg3_id.rules[15445]: WARNING: SCSI device loop0 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules

Because the warning code had erroneously been inserted in the "sg3_utils_id_end" clause. Fix it.

Fixes: d7b8da0 ("udev rules: restrict use of ambiguous device IDs patchset")

mwilck avatar Jan 09 '24 21:01 mwilck

@doug-gilbert, please review and apply. This fixes annoying warnings for lots of block devices.

mwilck avatar Feb 05 '24 08:02 mwilck