summaryrefslogtreecommitdiffhomepage
path: root/control/controlclient/hostinfo_linux.go
AgeCommit message (Collapse)AuthorFilesLines
2021-04-06hostifo: update LXC, add Cloud Run.Denton Gentry1-0/+20
Recent LXC support no longer has "lxc" in /proc/1/cgroup: # cat /proc/1/cgroup 12:freezer:/ 11:rdma:/ 10:cpuset:/ 9:pids:/ 8:blkio:/ 7:devices:/ 6:perf_event:/ 5:net_cls,net_prio:/ 4:memory:/ 3:hugetlb:/ 2:cpu,cpuacct:/ 1:name=systemd:/init.scope 0::/init.scope Look for fuse.lxcfs in /proc.mounts in addition: # grep lxc /proc/mounts lxcfs /proc/cpuinfo fuse.lxcfs ... lxcfs /proc/diskstats fuse.lxcfs ... lxcfs /proc/loadavg fuse.lxcfs ... lxcfs /proc/meminfo fuse.lxcfs ... lxcfs /proc/stat fuse.lxcfs ... lxcfs /proc/swaps fuse.lxcfs ... lxcfs /proc/uptime fuse.lxcfs ... lxcfs /sys/devices/system/cpu/online fuse.lxcfs ... Add Knative detection by looking for the environment variables which are part of its container contract. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2020-12-21control/controlclient, version/distro: detect NixOS explicitlyBrad Fitzpatrick1-1/+1
The fallthrough happened to work in controlclient already due to the /etc/os-release PRETTY_NAME default, but make it explicit so it doesn't look like an accident. Also add it to version/distro, even though nothing needs it yet.
2020-09-22control/controlclient, version/distro, wgengine: recognize OpenWrtBrad Fitzpatrick1-3/+9
And help out with missing packages. Thanks to @willangley for tips. Updates #724
2020-09-15control/controlclient: report Synology "distro" + its version to controlBrad Fitzpatrick1-1/+11
2020-07-27tailcfg, control/controlclient: add GoArch, populate OSVersion on LinuxBrad Fitzpatrick1-0/+87