mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-20 21:51:42 +00:00
wgengine: also diagnose not-yet-rebooted system updates on Arch
This commit is contained in:
parent
3464114b88
commit
adf74c75ed
@ -746,6 +746,15 @@ func diagnoseLinuxTUNFailure(logf logger.Logf) {
|
|||||||
if !bytes.Contains(dpkgOut, kernel) {
|
if !bytes.Contains(dpkgOut, kernel) {
|
||||||
logf("kernel/drivers/net/tun.ko found on disk, but not for current kernel; are you in middle of a system update and haven't rebooted? found: %s", dpkgOut)
|
logf("kernel/drivers/net/tun.ko found on disk, but not for current kernel; are you in middle of a system update and haven't rebooted? found: %s", dpkgOut)
|
||||||
}
|
}
|
||||||
|
case "arch":
|
||||||
|
findOut, err := exec.Command("find", "/lib/modules/", "-path", "*/net/tun.ko*").CombinedOutput()
|
||||||
|
if len(bytes.TrimSpace(findOut)) == 0 || err != nil {
|
||||||
|
logf("tun module not loaded nor found on disk")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !bytes.Contains(findOut, kernel) {
|
||||||
|
logf("kernel/drivers/net/tun.ko found on disk, but not for current kernel; are you in middle of a system update and haven't rebooted? found: %s", findOut)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -753,5 +762,8 @@ func linuxDistro() string {
|
|||||||
if _, err := os.Stat("/etc/debian_version"); err == nil {
|
if _, err := os.Stat("/etc/debian_version"); err == nil {
|
||||||
return "debian"
|
return "debian"
|
||||||
}
|
}
|
||||||
|
if _, err := os.Stat("/etc/arch-release"); err == nil {
|
||||||
|
return "arch"
|
||||||
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user