mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
更新 boot.sh,优化 kexec 命令,添加 kexecboot 参数
This commit is contained in:
parent
f2e334b682
commit
74e0af058e
@ -250,6 +250,7 @@ if [ "${DIRECT}" = "true" ]; then
|
|||||||
grub-editenv ${USER_GRUBENVFILE} set next_entry="direct"
|
grub-editenv ${USER_GRUBENVFILE} set next_entry="direct"
|
||||||
|
|
||||||
_bootwait || exit 0
|
_bootwait || exit 0
|
||||||
|
|
||||||
echo -e "\033[1;33m$(TEXT "Reboot to boot directly in DSM")\033[0m"
|
echo -e "\033[1;33m$(TEXT "Reboot to boot directly in DSM")\033[0m"
|
||||||
reboot
|
reboot
|
||||||
exit 0
|
exit 0
|
||||||
@ -322,7 +323,7 @@ else
|
|||||||
done
|
done
|
||||||
|
|
||||||
_bootwait || exit 0
|
_bootwait || exit 0
|
||||||
|
|
||||||
echo -e "\033[1;37m$(TEXT "Loading DSM kernel ...")\033[0m"
|
echo -e "\033[1;37m$(TEXT "Loading DSM kernel ...")\033[0m"
|
||||||
|
|
||||||
DSMLOGO="$(readConfigKey "dsmlogo" "${USER_CONFIG_FILE}")"
|
DSMLOGO="$(readConfigKey "dsmlogo" "${USER_CONFIG_FILE}")"
|
||||||
@ -343,7 +344,7 @@ else
|
|||||||
echo -e "\033[1;33m$(TEXT "Warning, running kexec with --noefi param, strange things will happen!!")\033[0m"
|
echo -e "\033[1;33m$(TEXT "Warning, running kexec with --noefi param, strange things will happen!!")\033[0m"
|
||||||
KEXECARGS+=" --noefi"
|
KEXECARGS+=" --noefi"
|
||||||
fi
|
fi
|
||||||
kexec ${KEXECARGS} -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog
|
kexec ${KEXECARGS} -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE} kexecboot" >"${LOG_FILE}" 2>&1 || dieLog
|
||||||
|
|
||||||
echo -e "\033[1;37m$(TEXT "Booting ...")\033[0m"
|
echo -e "\033[1;37m$(TEXT "Booting ...")\033[0m"
|
||||||
# show warning message
|
# show warning message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user