systemd 258 enhances the systemd-creds userdb mechanism and now fails when the /etc/userdb directory is missing.
1. Remove the systemd-userdb-load-credentials.service script as no service (addon) require the creation of static users
# systemctl --failed
● systemd-userdb-load-credentials.service loaded failed failed Load JSON user/group Records from Credentials
2. Create the symbolic link to allow the /storage/.cache/userdb to be utilised (but no default directory to be created)
# userdbctl services
SERVICE LISTENING
io.systemd.DropIn yes
io.systemd.DynamicUser yes
io.systemd.Multiplexer yes
io.systemd.NameServiceSwitch yes
4 services listed.
# ls -l /storage/.cache/userdb
lrwxrwxrwx 1 root root 6 Sep 21 09:48 473.user -> testuser.user
-rw-r--r-- 1 root root 250 Sep 21 09:27 testuser.user
# id u
uid=473(testuser) gid=473 groups=473
# userdbctl
NAME DISPOSITION UID GID REALNAME HOME SHELL
...
┌─ ↓ begin system users ↓ system 1 - First system user - -
...
testuser regular 473 473 - / /bin/false
└─ ↑ end system users ↑ system 999 - Last system user - -
- https://systemd.io/USER_RECORD/
- https://man7.org/linux/man-pages/man8/nss-systemd.8.html
- https://man7.org/linux/man-pages/man7/systemd.system-credentials.7.html
LibreELEC
LibreELEC is a 'Just enough OS' Linux distribution for the award-winning Kodi software on popular mediacentre hardware. Further information on the project can be found on the LibreELEC website.
Issues & Support
Please ask questions in the LibreELEC forum: Help & Support or ask a member of project staff in the #libreelec IRC channel on Libera.Chat. Please report bugs via GitHub Issues.
Donations
Contributions towards current project funding goals can be made via OpenCollective.
License
LibreELEC original code is released under GPLv2.
Copyright
As LibreELEC includes code from many upstream projects it has many copyright owners; notably OpenELEC which we forked from after disagreeing with project direction and management, and OpenBricks/GeeXboX the uncredited source of the original 2009 build system. LibreELEC makes no claim of copyright on any upstream code. However all original LibreELEC authored code is copyright LibreELEC.tv. Patches to upstream code have the same license as the upstream project unless specified otherwise. For a complete copyright list please checkout the source code to examine license headers. Unless expressly stated otherwise all code submitted to the LibreELEC project (in any form) is licensed under GPLv2 and copyright is donated to the project. This approach gives the project freedom to maintain the code without the overhead of preserving contact with every submitter, e.g. GPLv3. You are free to retain copyright by adding your copyright header to each submitted code page. If you submit code that is not your own work it is your responsibility to place a header stating the copyright.