cgroups: set (irrelenvant) device string to cgroup2

Just a cosmetic change with no real changes, more than the visual impact
when running mount
This commit is contained in:
Pablo Correa Gómez 2023-04-20 23:41:09 +02:00
parent 09d405fb3e
commit 60970e5bfa
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79

View File

@ -72,8 +72,8 @@ cgroup2_base()
local base
base="$(cgroup2_find_path)"
mkdir -p "${base}"
mount -t cgroup2 none -o "${cgroup_opts},nsdelegate" "${base}" 2> /dev/null ||
mount -t cgroup2 none -o "${cgroup_opts}" "${base}"
mount -t cgroup2 cgroup2 -o "${cgroup_opts},nsdelegate" "${base}" 2> /dev/null ||
mount -t cgroup2 cgroup2 -o "${cgroup_opts}" "${base}"
return 0
}