diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-03 11:29:46 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-03 11:35:47 +0200 |
commit | 6ab7e0de2953b5d13f52372258825e90fdea3fd3 (patch) | |
tree | f5bc2277566aee7d97d08fa72038f37dff341ccc /nixos | |
parent | 9cea5bcf2cb180638e2e5e47692e57387fcbb051 (diff) | |
download | nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.tar nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.tar.gz nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.tar.bz2 nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.tar.lz nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.tar.xz nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.tar.zst nixlib-6ab7e0de2953b5d13f52372258825e90fdea3fd3.zip |
Create /var/log/journal
Fixes #9614.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 05369da4f16b..4976dfe8eea4 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -643,6 +643,10 @@ in if ! [ -e /etc/machine-id ]; then ${systemd}/bin/systemd-machine-id-setup fi + + # Keep a persistent journal. Note that systemd-tmpfiles will + # set proper ownership/permissions. + mkdir -m 0700 -p /var/log/journal ''; users.extraUsers.systemd-network.uid = config.ids.uids.systemd-network; |