From c39316ef5e078ee89ede12879ad2e2fb84eee3ec Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Mon, 6 May 2024 22:28:04 +0200 Subject: [PATCH] Revert "storage: try something new" This reverts commit 31293a6fc850a4abd9f184e575e7479d38542434. --- files/initrd/opt/arc/include/storage.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/files/initrd/opt/arc/include/storage.sh b/files/initrd/opt/arc/include/storage.sh index d2cad529..2c9f1d27 100755 --- a/files/initrd/opt/arc/include/storage.sh +++ b/files/initrd/opt/arc/include/storage.sh @@ -178,11 +178,7 @@ function getmapSelection() { REMAP="$(readConfigKey "arc.remap" "${USER_CONFIG_FILE}")" # Write Map to config and show Map to User if [ "${REMAP}" = "acports" ]; then - if [ ${SATAPORTMAP} -eq 1 ] && [ ! "${MACHINE}" = "NATIVE" ]; then - writeConfigKey "cmdline.SataPortMap" "0" "${USER_CONFIG_FILE}" - else - writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}" - fi + writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}" writeConfigKey "cmdline.DiskIdxMap" "${DISKIDXMAP}" "${USER_CONFIG_FILE}" deleteConfigKey "cmdline.sata_remap" "${USER_CONFIG_FILE}" elif [ "${REMAP}" = "maxports" ]; then @@ -222,11 +218,7 @@ function autogetmapSelection() { REMAP="$(readConfigKey "arc.remap" "${USER_CONFIG_FILE}")" # Write Map to config and show Map to User if [ "${REMAP}" = "acports" ]; then - if [ ${SATAPORTMAP} -eq 1 ] && [ ! "${MACHINE}" = "NATIVE" ]; then - writeConfigKey "cmdline.SataPortMap" "0" "${USER_CONFIG_FILE}" - else - writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}" - fi + writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}" writeConfigKey "cmdline.DiskIdxMap" "${DISKIDXMAP}" "${USER_CONFIG_FILE}" deleteConfigKey "cmdline.sata_remap" "${USER_CONFIG_FILE}" elif [ "${REMAP}" = "maxports" ]; then