tumblr / collins

groovy kind of love
tumblr.github.com/collins
Apache License 2.0
571 stars 99 forks source link

Extract and store logical disk name from lshw data #605

Closed defect closed 4 years ago

defect commented 4 years ago

This makes the LSHW parser and hw models grab the logicalname (i.e. /dev/sda, /dev/sdb and so on) of each disk from the lshw output.

This is because lshw doesn't always report them in order, and collins doesn't do a very good job at returning them in order. This makes it tricky to automate things without making a lot of assumptions, and we've had some hardware break those assumptions recently :) Having the logical name attached to each disk should help with automating the disk setup.

If lshw doesn't have the logicalname key for some reason it'lll just be an empty string.

I'm also updating the URL to the restlet repo which has apparently moved.

@tumblr/collins