Public bug reported:
Hi,
initramfs-clevis wait 1s for carrier to show up, this is not much and not
working in most cases.
For me i have to up to 12 seconds for lan carrier.
fix:
i changed /usr/share/initramfs-tools/scripts/local-top/clevis
to 12s loop:
eth_check() {
for device in $(clevis_all_netbootable_devices); do
for i in {1..12}; do
ip link set dev $device up
sleep 1
ETH_HAS_CARRIER=$(cat /sys/class/net/"$device"/carrier)
if [ "$ETH_HAS_CARRIER" = '1' ]; then
return 0
fi
done
done
return 1
}
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: clevis-initramfs 12-1ubuntu2 [modified:
usr/share/initramfs-tools/scripts/local-top/clevis]
ProcVersionSignature: Ubuntu 5.4.0-25.29-generic 5.4.30
Uname: Linux 5.4.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Mon Apr 20 18:55:44 2020
InstallationDate: Installed on 2020-04-18 (2 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
PackageArchitecture: all
SourcePackage: clevis
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: clevis (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug focal
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1873914
Title:
initramfs clevis no carrier after 1s, no retry
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clevis/+bug/1873914/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs