Dhcpcd prioritizes (unconnnected) LAN adapter over WLAN, causing a 5 min boot delay
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aoetools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After upgrading to Ubuntu 24.04, dhcpcd spends over five minutes trying to obtain a DHCP lease for an unconnected LAN adapter during startup.
Only after this process times out, the boot process resumes.
Consequently, startup works flawlessly, if the laptop is connected to the LAN, but takes five additional minutes, if that's not the case.
Please find below the console output (obtained by pressing "ESC" during bootup)
Setting ip link enp0s... up
Setting ip link enx0... up
dhcpcd-10.0.6 starting
dev: loaded udev
no interfaces have a carrier
exiting due to oneshot
Sleeping 30 seconds before retrying getting a DHCP lease
dhcpcd-10.0.6 starting
dev: loaded udev
no interfaces have a carrier
exiting due to oneshot
Sleeping 60 seconds before retrying getting a DHCP lease
...
dhcpcd-10.0.6 starting
dev: loaded udev
no interfaces have a carrier
exiting due to oneshot
Sleeping 120 seconds before retrying getting a DHCP lease
After multiples tries to obtain a DHCP lease (which take approximately five minutes) the standard boot process resumes.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: initramfs-tools 0.142ubuntu25
ProcVersionSign
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.1-0ubuntu1
Architecture: amd64
CasperMD5CheckM
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 19 07:40:31 2024
InstallationDate: Installed on 2023-12-03 (138 days ago)
InstallationMedia: Ubuntu Legacy 23.10 "Mantic Minotaur" - Release amd64 (20231010)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: Upgraded to noble on 2024-04-18 (1 days ago)
Thank you for taking the time to report this bug and contributing to Ubuntu. Is the LAN adapter the only network device on your machine? What are you kernel cmdline parameters?