From 13111c52038680e1f0b5e87c6393bfe7c165b869 Mon Sep 17 00:00:00 2001 From: Dave Jansen Date: Mon, 23 Feb 2026 11:29:40 +0900 Subject: [PATCH] Attempt to re-add /etc/passwd fiddling (Niri only). --- build_files/niri/cleanup.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/build_files/niri/cleanup.sh b/build_files/niri/cleanup.sh index 72f3277..3234c8b 100755 --- a/build_files/niri/cleanup.sh +++ b/build_files/niri/cleanup.sh @@ -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)"