Flamenco/pkg/sysinfo/sysinfo_linux.go
Sybren A. Stüvel 12bc182857 Log more OS info at startup
In addition to logging `GOOS` and `GOARCH`, also log more info about the
system:

- Windows: the Windows version and edition.
- Linux: distribution, distribution version, and kernel version.
- macOS: just "macOS", until we know more about getting info there too.
2023-10-15 14:16:56 +02:00

23 lines
462 B
Go

package sysinfo
// SPDX-License-Identifier: GPL-3.0-or-later
import (
"fmt"
the_other_sysinfo "github.com/zcalusic/sysinfo"
)
// canSymlink always returns true, as symlinking on non-Windows platforms is not
// hard.
func canSymlink() (bool, error) {
return true, nil
}
func description() (string, error) {
var si the_other_sysinfo.SysInfo
si.GetSysInfo()
description := fmt.Sprintf("%s (%s)", si.OS.Name, si.Kernel.Release)
return description, nil
}