Skip to content

Commit

Permalink
Manifests: disable default ZRAM config
Browse files Browse the repository at this point in the history
In coreos#2937
we moved zram-generator to the system-configuration.yaml
manifest so it's shared with RHCOS.
However in the centOS stream 9 zram-generator-0.3.2 [1] ships a
default config file, resulting in a swap device being created
by default.
This ends up breaking kubelet, until kubernetes 1.30
is released

[1] https://gitlab.com/redhat/centos-stream/rpms/rust-zram-generator/-/blob/c9s/zram-generator.conf?ref_type=heads
  • Loading branch information
jbtrystram committed Apr 10, 2024
1 parent a9f8f2a commit b37b501
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/system-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ postprocess:
- |
#!/usr/bin/env bash
systemctl mask systemd-repart.service
# zram-generator-0.3.2 (shipped in centOS 9) provides a default
# zram-generator config, we want to disable it
- |
#!/usr/bin/env bash
rm -f /usr/lib/systemd/zram-generator.conf

0 comments on commit b37b501

Please sign in to comment.