storage: exclude native from remap port 0

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-05-24 10:09:37 +02:00
parent 838621dc59
commit 0886ba597d

View File

@@ -122,7 +122,7 @@ function getmap() {
if [ $(lspci -d ::106 | wc -l) -gt 0 ]; then
LASTDRIVE=0
while read -r D; do
if [[ "${BUS}" != "usb" && ${D} -eq 0 ]]; then
if [ "${BUS}" = "sata" ] && [ ! "${MACHINE}" = "NATIVE" ] && [ ${D} -eq 0 ]; then
MAXDISKS=${DRIVES}
echo -n "${D}>${MAXDISKS}:">>"${TMP_PATH}/remap"
elif [ ! ${D} = ${LASTDRIVE} ]; then