| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/1/root/lib/dracut/modules.d/90kernel-network-modules/ |
Upload File : |
#!/usr/bin/bash
# called by dracut
check() {
return 255
}
# called by dracut
installkernel() {
# Include wired net drivers, excluding wireless
local _arch=${DRACUT_ARCH:-$(uname -m)}
local _net_symbols='eth_type_trans|register_virtio_device|usbnet_open'
local _unwanted_drivers='/(wireless|isdn|uwb|net/ethernet|net/phy|net/team)/'
local _net_drivers
if [[ $_arch == "s390" ]] || [[ $_arch == "s390x" ]]; then
dracut_instmods -o -P ".*${_unwanted_drivers}.*" -s "$_net_symbols" "=drivers/s390/net"
fi
if [[ $hostonly_mode == 'strict' ]] && [[ -n ${hostonly_nics+x} ]]; then
for _nic in $hostonly_nics; do
mapfile -t _net_drivers < <(get_dev_module /sys/class/net/"$_nic")
if ((${#_net_drivers[@]} == 0)); then
derror "--hostonly-nics contains invalid NIC '$_nic'"
continue
fi
hostonly="" instmods "${_net_drivers[@]}"
done
return 0
fi
dracut_instmods -o -P ".*${_unwanted_drivers}.*" -s "$_net_symbols" "=drivers/net"
#instmods() will take care of hostonly
instmods \
'=drivers/net/mdio' \
'=drivers/net/phy' \
'=drivers/net/team' \
'=drivers/net/ethernet' \
ecb arc4 bridge stp llc ipv6 bonding 8021q ipvlan macvlan af_packet virtio_net xennet
}