Skip to content

Commit

Permalink
add usermod workaround for openvswitch hugetlbfs group
Browse files Browse the repository at this point in the history
The RPM is now using systemd-sysusers fragments [1] and the RPM
scriptlets no longer successfully add the `hugetlbfs` group to the
`openvswitch` user [2]. Let's add a workaround for now while we investigate.

[1] openshift#1274 (comment)
[2] openshift#1274 (comment)
  • Loading branch information
dustymabe authored and openshift-cherrypick-robot committed Jun 20, 2023
1 parent 8c94b9f commit 21014f5
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 21014f5

Please sign in to comment.