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
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to