mirror of
https://github.com/RROrg/rr.git
synced 2025-12-08 21:19:43 +08:00
修复直接启动条件判断,支持在 Parallels 和 Xen 环境下正常工作
This commit is contained in:
parent
dbc819cdd8
commit
d39b0ada77
@ -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}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user