Update rc.S.cont

only execute rc.modules if unraidsafemode is not set
This commit is contained in:
Christoph Hummer
2023-11-09 11:06:05 +01:00
committed by GitHub
parent dfa2199332
commit 348ebc3bc2

View File

@@ -15,10 +15,15 @@
# LimeTech - bind selected devices to vfio-pci
/usr/local/sbin/vfio-pci 1>/var/log/vfio-pci 2>/var/log/vfio-pci-errors
# Run the kernel module script. This updates the module dependencies and
# also supports manually loading kernel modules through rc.modules.local.
if [[ -x /etc/rc.d/rc.modules ]]; then
/etc/rc.d/rc.modules
# If "unraidsafemode" indicated, skip installing driver packages
if [[ -f /boot/unraidsafemode ]] || grep -wq unraidsafemode /proc/cmdline; then
log "Unraid Safe Mode (unraidsafemode) has been set, skip driver installation"
else
# Run the kernel module script. This updates the module dependencies and
# also supports manually loading kernel modules through rc.modules.local.
if [[ -x /etc/rc.d/rc.modules ]]; then
/etc/rc.d/rc.modules
fi
fi
# Initialize udev to manage /dev entries and hotplugging.