mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-13 21:41:56 +01:00
Following up on deprecation in Talos 1.9, remove it completely for Talos 1.10. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
19 lines
598 B
Go
19 lines
598 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package mount
|
|
|
|
import (
|
|
"golang.org/x/sys/unix"
|
|
|
|
"github.com/siderolabs/talos/pkg/machinery/constants"
|
|
)
|
|
|
|
// CGroupMountPoints returns the cgroup mount points.
|
|
func CGroupMountPoints() Points {
|
|
return Points{
|
|
NewPoint("cgroup", constants.CgroupMountPath, "cgroup2", WithFlags(unix.MS_NOSUID|unix.MS_NODEV|unix.MS_NOEXEC|unix.MS_RELATIME), WithData("nsdelegate,memory_recursiveprot")),
|
|
}
|
|
}
|