Reimplement disk_info() function
authorDarshaka Pathirana <dpat@syn-net.org>
Thu, 24 Aug 2023 12:38:40 +0000 (14:38 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Thu, 24 Aug 2023 12:57:30 +0000 (14:57 +0200)
commit6146f5a7300eb2df5ed3b65aa60f37ffa7c373f8
treed2131aa90e5a66ce59062fca222878f4ab7593ac
parent6487a61525e951e0e73377db583b289b353f0232
Reimplement disk_info() function

The disklist variable holds a newline separated list of devices that is
used to get various infos about the given disks, such as sfdisk,
smartctl, hdparm, fdisk, parted, sdparm, sg_inq and the output of file.

Unfortunately NVMe disks were not included in the list.

lsblk lists information about all available or specified block devices
excluding the loopback and CD-ROM devices. The checkdisk() function is
is no longer needed.

FTR, the major:minor device numbers are listed in the Kernel
documentation, in case we need to exclude more disk device types:

https://www.kernel.org/doc/Documentation/admin-guide/devices.txt

Closes: grml/grml-hwinfo#6
grml-hwinfo