Skip to content

Commit

Permalink
profiles/default-systemd: try fix cgroups through profile
Browse files Browse the repository at this point in the history
  • Loading branch information
joostruis committed Jan 5, 2025
1 parent 2e78418 commit 10bfbef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mocaccino/profiles/collection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:
version: ">=0"
- name: default-systemd
category: system-profile
version: "0.9.1"
version: "0.9.2"
requires:
- <<: *yip
- <<: *cli
Expand Down
2 changes: 1 addition & 1 deletion packages/mocaccino/profiles/profiles/default-systemd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ stages:
- echo "Disabling cgroups v1 if present..."; for subsystem in $(ls /sys/fs/cgroup); do umount /sys/fs/cgroup/$subsystem || true; done

# Enable cgroups v2
- [ ! -d /sys/fs/cgroup ] && mkdir -p /sys/fs/cgroup; echo "Mounting cgroups v2..."; mount -t cgroup2 none /sys/fs/cgroup
- if [ ! -d /sys/fs/cgroup ]; then mkdir -p /sys/fs/cgroup; fi; echo "Mounting cgroups v2..."; mount -t cgroup2 none /sys/fs/cgroup
name: "system setup"

0 comments on commit 10bfbef

Please sign in to comment.