init/boot: update

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2025-02-09 15:02:40 +01:00
parent a9df9c5ae1
commit ab1b0eea48
2 changed files with 3 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ rm -rf "${PART1_PATH}/logs" >/dev/null 2>&1 || true
# Get Loader Disk Bus
[ -z "${LOADER_DISK}" ] && die "Loader Disk not found!"
BUS=$(getBus "${LOADER_DISK}")
EFI=$([ -d /sys/firmware/efi ] && echo 1 || echo 0)
[ -d /sys/firmware/efi ] && EFI="1" || EFI="0"
# Print Title centralized
clear
@@ -333,8 +333,7 @@ elif [ "${DIRECTBOOT}" = "false" ]; then
echo -e "\033[1;37mLoading DSM Kernel...\033[0m"
KEXECARGS="-a"
if [ $(echo "${KVER:-4}" | cut -d'.' -f1) -lt 4 ] && [ ${EFI} -eq 1 ]; then
echo -e "\033[1;33mWarning, running kexec with --noefi param, strange things will happen!!\033[0m"
if [ ${EFI} -eq 0 ]; then
KEXECARGS+=" --noefi"
fi
kexec ${KEXECARGS} -l "${MOD_ZIMAGE_FILE}" --initrd "${MOD_RDGZ_FILE}" --command-line="${CMDLINE_LINE} kexecboot" >"${LOG_FILE}" 2>&1 || dieLog

View File

@@ -14,7 +14,7 @@ arc_mode || die "No bootmode found!"
[ -f "${USER_CONFIG_FILE}" ] && sed -i "s/'/\"/g" "${USER_CONFIG_FILE}" >/dev/null 2>&1 || true
BUS=$(getBus "${LOADER_DISK}")
EFI=$([ -d /sys/firmware/efi ] && echo 1 || echo 0)
[ -d /sys/firmware/efi ] && EFI="1" || EFI="0"
# Print Title centralized
clear