diff --git a/manifest-rhel-9.2.yaml b/manifest-rhel-9.2.yaml index 3c7e6ac3d..03698ce74 100644 --- a/manifest-rhel-9.2.yaml +++ b/manifest-rhel-9.2.yaml @@ -108,6 +108,17 @@ postprocess: --- EOF + # Add the hugetlbfs group to the openvswitch user if the openvswitch-hugetlbfs.conf + # sysusers fragment exists. The usermod used to happen in the RPM scriptlets but + # that stopped working in the sysusers conversion. We still need need to investigate + # it further. https://github.com/openshift/os/issues/1274#issuecomment-1595860275 + - | + #!/usr/bin/env bash + set -xeo pipefail + if [ -f /usr/lib/sysusers.d/openvswitch-hugetlbfs.conf ]; then + usermod -a -G hugetlbfs openvswitch + fi + # Packages that are only in RHCOS and not in SCOS or that have special # constraints that do not apply to SCOS packages: