fix(network): detect every wired card, including PCIe fibre adapters
The installer's network screen only listed Ethernet devices NetworkManager reported as connected or disconnected. A card without carrier (fibre or cable unplugged, SFP module refused) was hidden, and a card whose driver never produced an interface was invisible to NetworkManager altogether, so a PCIe fibre adapter looked "not detected". Every Ethernet device is now listed with its interface name, and PCI Ethernet controllers without an interface are shown as cards without a driver. fws-setup-hardware only knew about Wi-Fi. A wired group now covers every class-0200 controller and the check phase names each card: link up, no link, or no interface at all. Intel ixgbe (82599/X520/X540) refuses non-Intel SFP modules by default, the most common reason a fibre port stays dead on Linux. The live and the installed system now allow them.
This commit is contained in:
3 files changed
+83
-11
No files matched your search
@@ -0,0 +1,6 @@
|
||||
# Intel 82599 / X520 / X540 (ixgbe) refuse by default any SFP/SFP+ module that
|
||||
# is not Intel-branded: the port never comes up, dmesg says "unsupported SFP+
|
||||
# module type was detected", and the card looks "not detected". Third-party
|
||||
# modules are the norm on fibre links. The live and the installed system share
|
||||
# this rootfs, so both accept them.
|
||||
options ixgbe allow_unsupported_sfp=1
|
||||
@@ -209,6 +209,17 @@ if [ -n "$WIFI_HW" ]; then
|
||||
fi
|
||||
group wifi "Réseau sans fil${WIFI_NOTE:+ — $WIFI_NOTE}" "$WIFI_DETECT" $WIFI_PKGS
|
||||
|
||||
# ── 1ter) Réseau filaire ────────────────────────────────────────────────────
|
||||
# Toute carte Ethernet PCI (classe 0200) : intégrée, PCIe cuivre ou fibre
|
||||
# (SFP/SFP+). Les pilotes sont dans le noyau et les micrologiciels dans
|
||||
# linux-firmware : ce qui manque le plus souvent n'est pas un paquet mais le
|
||||
# CONSTAT qu'une carte est là sans interface. La vérification plus bas le dit
|
||||
# carte par carte, au lieu de laisser croire que la carte n'existe pas.
|
||||
ETH_HW="$(lspci -D -d ::0200 2>/dev/null)"
|
||||
ETH_DETECT=0
|
||||
[ -n "$ETH_HW" ] && ETH_DETECT=1
|
||||
group ethernet "Réseau filaire (Ethernet, fibre)" "$ETH_DETECT" linux-firmware
|
||||
|
||||
# ── 2) Son ──────────────────────────────────────────────────────────────────
|
||||
# PipeWire est le serveur audio, PAS PulseAudio : « pipewire-pulse » est la
|
||||
# couche de compatibilité (elle fournit libpulse, donc les applis PulseAudio et
|
||||
@@ -623,6 +634,23 @@ if selected_has wifi; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# --- Réseau filaire ---------------------------------------------------------
|
||||
# Une carte sans interface = pilote ou micrologiciel manquant : on la NOMME.
|
||||
if selected_has ethernet && [ -n "$ETH_HW" ]; then
|
||||
while IFS= read -r _l; do
|
||||
_slot="${_l%% *}"
|
||||
_desc="$(printf '%s' "${_l#*: }" | cut -c1-60)"
|
||||
_if="$(ls "/sys/bus/pci/devices/$_slot/net" 2>/dev/null | head -1)"
|
||||
if [ -z "$_if" ]; then
|
||||
ko "réseau filaire : AUCUNE interface pour « $_desc » — pilote ou micrologiciel manquant"
|
||||
elif [ "$(cat "/sys/class/net/$_if/carrier" 2>/dev/null)" = 1 ]; then
|
||||
ok "réseau filaire : $_if — liaison active ($_desc)"
|
||||
else
|
||||
ok "réseau filaire : $_if — sans liaison (câble / fibre débranché ?) ($_desc)"
|
||||
fi
|
||||
done <<< "$ETH_HW"
|
||||
fi
|
||||
|
||||
echo
|
||||
log "terminé"
|
||||
exit 0
|
||||
Reference in new issue
Block a user