@tuxce
Peut-être le bug est-il toujours ouvert parce que cela ne fonctionne pas.
Code : Tout sélectionner
[root@ThinkPadR40 ~]# cat /etc/systemd/system/netcfg@.service
[Unit]
Description=Netcfg networking service for profile %i
[b]BindTo=sys-subsystem-net-devices-wlan0.device[/b]
Before=network.target
#After=sysinit.target
Wants=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/netcfg check-iface %i
ExecStop=-/usr/bin/netcfg down %i
KillMode=none
[Install]
WantedBy=multi-user.target
[root@ThinkPadR40 ~]# systemctl status netcfg@wlan0-Livebox-bdb8.service
netcfg@wlan0-Livebox-bdb8.service - Netcfg networking service for profile wlan0-Livebox-bdb8
Loaded: loaded (/etc/systemd/system/netcfg@.service; enabled)
Active: failed (Result: exit-code) since Tue, 2012-10-30 11:08:46 UTC; 1min 12s ago
Process: 178 ExecStart=/usr/bin/netcfg check-iface %i (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/netcfg@.service/wlan0-Livebox-bdb8
Oct 30 11:08:46 ThinkPadR40 systemd[1]: netcfg@wlan0-Livebox-bdb8.service: main process exited, code=exited, status=1/FAILURE
Oct 30 11:08:46 ThinkPadR40 systemd[1]: Failed to start Netcfg networking service for profile wlan0-Livebox-bdb8.
Oct 30 11:08:46 ThinkPadR40 systemd[1]: Unit netcfg@wlan0-Livebox-bdb8.service entered failed state
Oct 30 11:08:46 ThinkPadR40 netcfg[178]: :: wlan0-Livebox-bdb8 up interface wlan0 does not exist
Oct 30 11:08:46 ThinkPadR40 netcfg[178]: [fail]
Peut-être dis-je une bêtise mais je suis surpris que systemd ne sache pas attendre un interface réseau car cela n'est jamais instantané.
@benjarobin
Mes excuses ! Voici un nouvel essai avec le paramètre corrigé mais toujours en échec.
Code : Tout sélectionner
[root@ThinkPadR40 ~]# cat /etc/systemd/system/netcfg@.service
[Unit]
Description=Netcfg networking service for profile %i
#BindTo=sys-subsystem-net-devices-wlan0.device
Before=network.target
[b]After=sysinit.target[/b]
Wants=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/netcfg check-iface %i
ExecStop=-/usr/bin/netcfg down %i
KillMode=none
[Install]
WantedBy=multi-user.target
[root@ThinkPadR40 ~]# systemctl status netcfg@wlan0-Livebox-bdb8.service
netcfg@wlan0-Livebox-bdb8.service - Netcfg networking service for profile wlan0-Livebox-bdb8
Loaded: loaded (/etc/systemd/system/netcfg@.service; enabled)
Active: failed (Result: exit-code) since Tue, 2012-10-30 10:56:21 UTC; 2min 5s ago
Process: 194 ExecStart=/usr/bin/netcfg check-iface %i (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/netcfg@.service/wlan0-Livebox-bdb8
Oct 30 10:56:21 ThinkPadR40 systemd[1]: netcfg@wlan0-Livebox-bdb8.service: main process exited, code=exited, status=1/FAILURE
Oct 30 10:56:21 ThinkPadR40 systemd[1]: Failed to start Netcfg networking service for profile wlan0-Livebox-bdb8.
Oct 30 10:56:21 ThinkPadR40 systemd[1]: Unit netcfg@wlan0-Livebox-bdb8.service entered failed state
Oct 30 10:56:21 ThinkPadR40 netcfg[194]: :: wlan0-Livebox-bdb8 up interface wlan0 does not exist
Oct 30 10:56:21 ThinkPadR40 netcfg[194]: [fail]
Conclusion
C'est vraiment un bug alors ? (Zut ! je pensais que cela se produisait moins au pays des Archers). Il faut donc une solution de contournement
- revenir à avant le fichier /etc/systemd/system/wlan0....
- ne rien faire attendre que le bug soit corrigé et lancer manuellement
- un script post-boot ou j'y pense pré-xfce
Vos avis ?