修复直接启动条件判断,支持在 Parallels 和 Xen 环境下正常工作

This commit is contained in:
Ing 2025-10-09 01:38:51 +08:00
parent dbc819cdd8
commit d39b0ada77

View File

@ -336,7 +336,7 @@ function _bootwait() {
} }
DIRECT="$(readConfigKey "directboot" "${USER_CONFIG_FILE}")" DIRECT="$(readConfigKey "directboot" "${USER_CONFIG_FILE}")"
if [ "${DIRECT}" = "true" ] || [ "${MEV:-physical}" = "parallels" ]; then if [ "${DIRECT}" = "true" ] || echo "parallels xen" | grep -qw "${MEV:-physical}"; then
# grubenv file limit is 1024 bytes. # grubenv file limit is 1024 bytes.
grub-editenv "${USER_RSYSENVFILE}" create grub-editenv "${USER_RSYSENVFILE}" create
grub-editenv "${USER_RSYSENVFILE}" set rr_version="${WTITLE}" grub-editenv "${USER_RSYSENVFILE}" set rr_version="${WTITLE}"