Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop hardcoded openvswitch user/group definitions #1317

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions group
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ nfsnobody:x:65534:
kube:x:994:
sshd:x:74:
chrony:x:992:
openvswitch:x:800:
hugetlbfs:x:801:
1 change: 0 additions & 1 deletion passwd
Original file line number Diff line number Diff line change
Expand Up @@ -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