chore: update Go to 1.19, Linux to 5.15.58

See https://go.dev/doc/go1.19

Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
Andrey Smirnov
2022-08-02 22:43:31 +04:00
parent fb058a7c92
commit a6b010a8b4
222 changed files with 368 additions and 312 deletions

View File

@@ -5,7 +5,6 @@
package kernel
import (
"io/ioutil"
"os"
"github.com/talos-systems/talos/pkg/machinery/kernel"
@@ -13,12 +12,12 @@ import (
// WriteParam writes a value to a key under /proc/sys.
func WriteParam(prop *kernel.Param) error {
return ioutil.WriteFile(prop.Path(), []byte(prop.Value), 0o644)
return os.WriteFile(prop.Path(), []byte(prop.Value), 0o644)
}
// ReadParam reads a value from a key under /proc/sys.
func ReadParam(prop *kernel.Param) ([]byte, error) {
return ioutil.ReadFile(prop.Path())
return os.ReadFile(prop.Path())
}
// DeleteParam deletes a value from a key under /proc/sys.