Skip to content

Commit 8ca5e49

Browse files
committed
hack: Add missing sysusers.d entry for sudo
TODO add this to the base image Signed-off-by: Colin Walters <[email protected]>
1 parent c08e9f8 commit 8ca5e49

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/provision-derived.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ d /var/roothome/buildinfo/content_manifests 0755 - - -
3737
f /var/roothome/buildinfo/content_manifests/content-sets.json 0644 - - -
3838
EOF
3939
fi
40+
41+
# And add missing sysusers.d entries
42+
if ! grep -q -r sudo /usr/lib/sysusers.d; then
43+
cat >/usr/lib/sysusers.d/bootc-sudo-workaround.conf <<'EOF'
44+
g sudo 16
45+
EOF
46+
fi

0 commit comments

Comments
 (0)