Comment 30 for bug 1976228

Revision history for this message
Trent Lloyd (lathiat) wrote :

This fixed which is merged upstream in Jan 2022 seems like a likely candidate fix:
https://github.com/doug-gilbert/sg3_utils/pull/10

System was crashing when 'rescan-scsi-bus.sh -r' was run. This is because of the changes in the output of sg_inq command. In it, "Device_type" has been replaced with "PDT". So when Device_type is used in sed, it was passing incorrect return value to dolunscan() and hence even the internal disk from which system is booting was getting deleted. Mentioned fix takes care of both the outputs of sg_inq command. Only in recent sg_inq we see "PDT". Earlier sg_inq still shows "Device_type".