From d8e4842a6d273bd53493bed3db21608af4e727f7 Mon Sep 17 00:00:00 2001 From: Ing Date: Sat, 3 May 2025 13:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20hddsort=20=E5=88=B0=20cmdl?= =?UTF-8?q?ine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/boot.sh | 4 ++++ files/initrd/opt/rr/ramdisk-patch.sh | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index 334a8bae..8da5c7df 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -132,6 +132,7 @@ SN="$(readConfigKey "sn" "${USER_CONFIG_FILE}")" MAC1="$(readConfigKey "mac1" "${USER_CONFIG_FILE}")" MAC2="$(readConfigKey "mac2" "${USER_CONFIG_FILE}")" KERNELPANIC="$(readConfigKey "kernelpanic" "${USER_CONFIG_FILE}")" +HDDSORT="$(readConfigKey "hddsort" "${USER_CONFIG_FILE}")" USBASINTERNAL="$(readConfigKey "usbasinternal" "${USER_CONFIG_FILE}")" EMMCBOOT="$(readConfigKey "emmcboot" "${USER_CONFIG_FILE}")" MODBLACKLIST="$(readConfigKey "modblacklist" "${USER_CONFIG_FILE}")" @@ -236,6 +237,9 @@ CMDLINE['nowatchdog']="" CMDLINE['modprobe.blacklist']="${MODBLACKLIST}" CMDLINE['mev']="${MEV:-physical}" +if [ "${HDDSORT}" = "true" ]; then + CMDLINE['hddsort']="" +fi if [ "${USBASINTERNAL}" = "true" ]; then CMDLINE['usbasinternal']="" fi diff --git a/files/initrd/opt/rr/ramdisk-patch.sh b/files/initrd/opt/rr/ramdisk-patch.sh index 8ce02f06..9e2ad624 100755 --- a/files/initrd/opt/rr/ramdisk-patch.sh +++ b/files/initrd/opt/rr/ramdisk-patch.sh @@ -31,7 +31,6 @@ KEYMAP="$(readConfigKey "keymap" "${USER_CONFIG_FILE}")" PATURL="$(readConfigKey "paturl" "${USER_CONFIG_FILE}")" PATSUM="$(readConfigKey "patsum" "${USER_CONFIG_FILE}")" ODP="$(readConfigKey "odp" "${USER_CONFIG_FILE}")" # official drivers priorities -HDDSORT="$(readConfigKey "hddsort" "${USER_CONFIG_FILE}")" DT="$(readConfigKey "dt" "${USER_CONFIG_FILE}")" KVER="$(readConfigKey "kver" "${USER_CONFIG_FILE}")"