mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
wip
This commit is contained in:
parent
8a163352c9
commit
6c5fef1ce3
@ -150,9 +150,9 @@ echo -e "\033[1;37mLoading DSM kernel...\033[0m"
|
|||||||
# Executes DSM kernel via KEXEC
|
# Executes DSM kernel via KEXEC
|
||||||
if [ "${EFI_BUG}" = "yes" -a ${EFI} -eq 1 ]; then
|
if [ "${EFI_BUG}" = "yes" -a ${EFI} -eq 1 ]; then
|
||||||
echo -e "\033[1;33mWarning, running kexec with --noefi param, strange things will happen!!\033[0m"
|
echo -e "\033[1;33mWarning, running kexec with --noefi param, strange things will happen!!\033[0m"
|
||||||
kexec --noefi -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog
|
kexec --args-linux --noefi -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog
|
||||||
else
|
else
|
||||||
kexec -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog
|
kexec --args-linux -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE}" >"${LOG_FILE}" 2>&1 || dieLog
|
||||||
fi
|
fi
|
||||||
/sbin/swapoff -a >/dev/null 2>&1 || true
|
/sbin/swapoff -a >/dev/null 2>&1 || true
|
||||||
/bin/umount -a -r >/dev/null 2>&1 || true
|
/bin/umount -a -r >/dev/null 2>&1 || true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user