Set up /etc/machine-id before starting systemd
Otherwise, systemd will try to populate /etc, which we don't want.
This commit is contained in:
parent
11ce1cab97
commit
c8501a4218
@ -647,6 +647,10 @@ in
|
|||||||
# groups, in addition to those in the systemd-journal group.
|
# groups, in addition to those in the systemd-journal group.
|
||||||
# Users can always read their own journals.
|
# Users can always read their own journals.
|
||||||
${pkgs.acl}/bin/setfacl -nm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal || true
|
${pkgs.acl}/bin/setfacl -nm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal || true
|
||||||
|
|
||||||
|
if ! [ -e /etc/machine-id ]; then
|
||||||
|
${systemd}/bin/systemd-machine-id-setup
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
users.extraUsers.systemd-network.uid = config.ids.uids.systemd-network;
|
users.extraUsers.systemd-network.uid = config.ids.uids.systemd-network;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user