diff --git a/common.yaml b/common.yaml index c9765b14..a6c706b1 100644 --- a/common.yaml +++ b/common.yaml @@ -189,6 +189,16 @@ 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. This is a workaround for a bug somewhere in the stack + # that we need to investigate 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) diff --git a/group b/group index e86d91b2..1fb1db8d 100644 --- a/group +++ b/group @@ -42,5 +42,3 @@ nfsnobody:x:65534: kube:x:994: sshd:x:74: chrony:x:992: -openvswitch:x:800: -hugetlbfs:x:801: diff --git a/passwd b/passwd index 673a3d56..893fd8a7 100644 --- a/passwd +++ b/passwd @@ -24,4 +24,3 @@ nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin kube:x:996:994:Kubernetes user:/:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin chrony:x:994:992::/var/lib/chrony:/sbin/nologin -openvswitch:x:800:800::/:/sbin/nologin