Attempt to re-add /etc/passwd fiddling (Niri only).
Some checks failed
Build container image / Build and push image (gnome) (push) Failing after 30m12s
Build container image / Build and push image (niri) (push) Successful in 31m33s

This commit is contained in:
2026-02-23 11:29:40 +09:00
parent 902f915433
commit 13111c5203

View File

@@ -52,16 +52,16 @@ chmod -R 1777 /var/tmp
## Handle files that rpm-ostree would normally remove
## Adapted from: https://github.com/hhd-dev/rechunk/blob/master/1_prune.sh#L33
# if [ -f /etc/passwd ]; then
# out="$(grep -v 'root' /etc/passwd)"
#
# if [[ ! -z "$out" ]]; then
# echo
# echo Appending the following passwd users to /usr/lib/passwd
# echo "${out}"
# echo "$out" >>/usr/lib/passwd
# fi
# fi
if [ -f /etc/passwd ]; then
out="$(grep -v 'root' /etc/passwd)"
if [[ ! -z "$out" ]]; then
echo
echo Appending the following passwd users to /usr/lib/passwd
echo "${out}"
echo "$out" >>/usr/lib/passwd
fi
fi
if [ -f /etc/group ]; then
out="$(grep -v 'root\|wheel' /etc/group)"