From 74e0af058e32f5eb26c7445e14e657054f5ca73b Mon Sep 17 00:00:00 2001 From: Ing Date: Fri, 8 Nov 2024 23:15:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20boot.sh=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20kexec=20=E5=91=BD=E4=BB=A4=EF=BC=8C=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20kexecboot=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/initrd/opt/rr/boot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/files/initrd/opt/rr/boot.sh b/files/initrd/opt/rr/boot.sh index ee44bc74..d81b29db 100755 --- a/files/initrd/opt/rr/boot.sh +++ b/files/initrd/opt/rr/boot.sh @@ -250,6 +250,7 @@ if [ "${DIRECT}" = "true" ]; then grub-editenv ${USER_GRUBENVFILE} set next_entry="direct" _bootwait || exit 0 + echo -e "\033[1;33m$(TEXT "Reboot to boot directly in DSM")\033[0m" reboot exit 0 @@ -322,7 +323,7 @@ else done _bootwait || exit 0 - + echo -e "\033[1;37m$(TEXT "Loading DSM kernel ...")\033[0m" 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" KEXECARGS+=" --noefi" 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" # show warning message