diff --git a/files/initrd/opt/arc/arc-functions.sh b/files/initrd/opt/arc/arc-functions.sh index e6701192..2fa79e51 100755 --- a/files/initrd/opt/arc/arc-functions.sh +++ b/files/initrd/opt/arc/arc-functions.sh @@ -1728,11 +1728,13 @@ EOF # Clone Loader Disk function cloneLoader() { rm -f "${TMP_PATH}/opts" >/dev/null - while read -r KNAME KMODEL PKNAME TYPE; do + while read -r KNAME SIZE TYPE PKNAME; do [ -z "${KNAME}" ] && continue - [ -z "${KMODEL}" ] && KMODEL="${TYPE}" - [ "${KNAME}" == "${LOADER_DISK}" ] || [ "${PKNAME}" == "${LOADER_DISK}" ] || [ "${KMODEL}" == "${LOADER_DISK}" ] && continue - echo "\"${KNAME}\" \"${KMODEL}\" \"off\"" >>"${TMP_PATH}/opts" + [[ "${KNAME}" = /dev/md* ]] && continue + [[ "${KNAME}" = "${LOADER_DISK}" || "${PKNAME}" = "${LOADER_DISK}" ]] && continue + [ -z "${SIZE}" ] && SIZE="Unknown" + printf "\"%s\" \"%-6s %-4s\" \"off\"\n" "${KNAME}" "${SIZE}" "${TYPE}" >>"${TMP_PATH}/opts" + done < <(lsblk -pno KNAME,SIZE,TYPE,PKNAME) done < <(lsblk -dpno KNAME,MODEL,PKNAME,TYPE | sort) if [ ! -f "${TMP_PATH}/opts" ]; then dialog --backtitle "$(backtitle)" --colors --title "Clone Loader" \ diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index 149ac116..9111a244 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -112,7 +112,7 @@ function bootDSM () { CMDLINE["syno_ttyS0"]="serial,0x3f8" CMDLINE["syno_ttyS1"]="serial,0x2f8" else - CMDLINE["SMBusHddDynamicPower"]="1" + # CMDLINE["SMBusHddDynamicPower"]="1" CMDLINE["syno_hdd_detect"]="0" CMDLINE["syno_hdd_powerup_seq"]="0" fi