You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a bunch of places we do if KernelVersion::current().unwrap() >= KernelVersion::new(....) {
In theory, we should always know the kernel version so the unwrap is understandable. However it seems that distributions really like to mess with how the kernel version is reported and we've had this unwrap fail in more than one case (some version of ubuntu and recently proxmox).
In the cases where we have if version { ... } else { ... } we should handle the case where current() fails, log a warning, and probably do the else thing which is usually whatever is supported by older kernels.
The text was updated successfully, but these errors were encountered:
In a bunch of places we do
if KernelVersion::current().unwrap() >= KernelVersion::new(....) {
In theory, we should always know the kernel version so the unwrap is understandable. However it seems that distributions really like to mess with how the kernel version is reported and we've had this unwrap fail in more than one case (some version of ubuntu and recently proxmox).
In the cases where we have
if version { ... } else { ... }
we should handle the case where current() fails, log a warning, and probably do the else thing which is usually whatever is supported by older kernels.The text was updated successfully, but these errors were encountered: