chore: remove unused logind and sysuser for dbus svc
This commit is contained in:
parent
12bacf271d
commit
879f74befa
4 changed files with 11 additions and 6 deletions
pkgs/image
|
@ -26,6 +26,13 @@ ln -sf ../systemd-timesyncd.service rootfs/usr/lib/systemd/system/multi-user.tar
|
|||
# enable default network config
|
||||
mv rootfs/usr/lib/systemd/network/89-ethernet.network.example rootfs/usr/lib/systemd/network/89-ethernet.network
|
||||
|
||||
### 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=rootfs rootfs/usr/lib/sysusers.d/*.conf
|
||||
chmod 600 rootfs/etc/shadow
|
||||
cat rootfs/etc/shadow
|
||||
|
||||
# generate a temporary machine id (replace with overlay later)
|
||||
$systemd/usr/bin/systemd-machine-id-setup --root=rootfs/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue