From 0886ba597db71d46c315d32f00c39bb43e42ba36 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 24 May 2024 10:09:37 +0200 Subject: [PATCH] storage: exclude native from remap port 0 Signed-off-by: AuxXxilium --- files/initrd/opt/arc/include/storage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/initrd/opt/arc/include/storage.sh b/files/initrd/opt/arc/include/storage.sh index 6a499236..ae054858 100755 --- a/files/initrd/opt/arc/include/storage.sh +++ b/files/initrd/opt/arc/include/storage.sh @@ -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