chore: remove unused logind and sysuser for dbus svc

This commit is contained in:
Lars Sjöström 2025-03-05 08:24:54 +01:00
parent 12bacf271d
commit 879f74befa
No known key found for this signature in database
4 changed files with 11 additions and 6 deletions
pkgs/rootfs

View file

@ -139,11 +139,6 @@ cp -P $libbpf/lib/libbpf* $out/usr/lib
# remove pkgconfig
rm -rf $out/usr/lib/pkgconfig
### install sys users (default password is patos)
mkdir creds
echo -n patos > creds/passwd.plaintext-password.root
CREDENTIALS_DIRECTORY=$PWD/creds SYSTEMD_CRYPT_PREFIX='$6$' $systemd/usr/bin/systemd-sysusers --root=$out $out/usr/lib/sysusers.d/*.conf
### Find and install all shared libs
find $out -type f -executable -exec ldd {} \; | awk '{print $3}' | grep -v systemd | grep -v glibc | grep -v tpm2 | grep -v devmapper | sort -u | xargs -I {} cp {} $out/usr/lib/
find $out -type f -executable -exec chmod 755 {} \;