[Nix-dev] journald and /var/log on a separate device

Игорь Пашев pashev.igor at gmail.com
Wed Dec 16 17:45:30 CET 2015


I tried to use /var/log on a separate disk.
After first deployment of VBox (via NixOps)
/var/log is mounted, but empty:

$ ls -lh /var/log/
total 16K
drwx------ 2 root root 16K Dec 17 00:28 lost+found

$ sudo journalctl
No journal files were found.


It seems that this stuff is executed before mount:
https://github.com/NixOS/nixpkgs/commit/538958bf17b7493e38ccc07d3405f979fd40e4b8

Then I deployed again (with out changes actually, just activation),
and /var/log/journal was create, but only readable by root:

$ ls -lh /var/log/journal/ -d
drwx------ 2 root root 4.0K Dec 17 00:34 /var/log/journal

It sounds like activation script is not the best place for making
/var/log/journal


More information about the nix-dev mailing list