Skip to content

Commit

Permalink
Merge pull request #1319 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1318-to-release-4.13

OCPBUGS-15224: [release-4.13] add usermod workaround for openvswitch hugetlbfs group
  • Loading branch information
openshift-merge-robot authored Jun 20, 2023
2 parents 8c94b9f + 21014f5 commit aa24646
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,17 @@ postprocess:
# but we have containers that expect it to be mounted so for now let's continue
# generating it.
ln -sr /usr/share/zoneinfo/UTC /etc/localtime
- |
#!/usr/bin/env bash
set -xeo pipefail
# 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
if [ -f /usr/lib/sysusers.d/openvswitch-hugetlbfs.conf ]; then
usermod -a -G hugetlbfs openvswitch
fi
remove-files:
# We don't ship man(1) or info(1)
Expand Down

0 comments on commit aa24646

Please sign in to comment.