File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,14 @@ if mountpoint -q /etc; then
244
244
unshare -m sh -c " umount /etc && mkdir -p /etc/extensions && attr -R -r overlay.opaque /etc/extensions || true"
245
245
fi
246
246
247
+ # Systemd version >= 256 does not boot anymore if cgroupv1 is enabled or SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 is set
248
+ # See: https://github.com/systemd/systemd/releases/tag/v256-rc3
249
+ NO_CGROUPV1_VERSION_ID=4187
250
+ if [ ! -f " /sys/fs/cgroup/cgroup.controllers" ]; then
251
+ echo " Flatcar version ${NO_CGROUPV1_VERSION_ID} or higher does not support cgroupv1 anymore. Aborting the update..." >&2
252
+ exit 1
253
+ fi
254
+
247
255
# Keep old nodes on cgroup v1
248
256
if [[ " ${BUILD_ID} " != " dev-" * ]]; then
249
257
if [ " ${VERSION_ID%% .* } " -lt 2956 ]; then
You can’t perform that action at this time.
0 commit comments