boot: fix

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-07-21 20:46:40 +02:00
parent 58a46bf753
commit 542c5a1017

View File

@ -6,6 +6,19 @@ function bootDSM () {
BUS=$(getBus "${LOADER_DISK}") BUS=$(getBus "${LOADER_DISK}")
# Check if machine has EFI # Check if machine has EFI
[ -d /sys/firmware/efi ] && EFI=1 || EFI=0 [ -d /sys/firmware/efi ] && EFI=1 || EFI=0
# Proc open nvidia driver when booting
NVPCI_ADDR=$(lspci -nd 10de: | grep -e 0300 -e 0302 | awk '{print $1}')
if [ -n "${NVPCI_ADDR}" ]; then
modprobe -r nouveau || true
NVDEV_PATH=$(find /sys/devices -name *${NVPCI_ADDR} | grep -v supplier)
for DEV_PATH in ${NVDEV_PATH}
do
if [ -e ${DEV_PATH}/reset ]; then
echo 1 > ${DEV_PATH}/reset || true
fi
done
fi
# Print Title centralized # Print Title centralized
clear clear
COLUMNS=${COLUMNS:-50} COLUMNS=${COLUMNS:-50}
@ -126,8 +139,8 @@ function bootDSM () {
CMDLINE['earlyprintk']="" CMDLINE['earlyprintk']=""
CMDLINE['earlycon']="uart8250,io,0x3f8,115200n8" CMDLINE['earlycon']="uart8250,io,0x3f8,115200n8"
CMDLINE['console']="ttyS0,115200n8" CMDLINE['console']="ttyS0,115200n8"
# CMDLINE['consoleblank']="600" CMDLINE['consoleblank']="600"
# CMDLINE['no_console_suspend']="1" CMDLINE['no_console_suspend']="1"
CMDLINE['root']="/dev/md0" CMDLINE['root']="/dev/md0"
CMDLINE['rootwait']="" CMDLINE['rootwait']=""
CMDLINE['loglevel']="15" CMDLINE['loglevel']="15"