sata detection logic

This commit is contained in:
2025-03-01 12:14:14 -05:00
parent 5ba1cc070d
commit 07e64d50fc

View File

@ -88,7 +88,7 @@ medium1='''
generate_medium2_layout() {
local usb_drives=$(ls -l /dev/disk/by-path/pci-0000:0b:00.0* 2>/dev/null | awk -F'/' '{print $NF}')
local sata_drives=$(ls -l /dev/disk/by-path/pci-0000:0c:00.0-ata-* 2>/dev/null | grep -v "part" | awk -F'/' '{print $NF}')
local sata_drives=$(ls -l /dev/disk/by-path/pci-0000:0c:00.0-ata-[0-9]$ 2>/dev/null | awk -F'/' '{print $NF}')
local nvme_drive=$(ls -l /dev/disk/by-path/pci-0000:0d:00.0* 2>/dev/null | awk -F'/' '{print $NF}')
# Print header