systemd-nspawn: do not crash on /var/log/journal creation if not required
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 21 Oct 2018 17:48:20 +0000 (19:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Oct 2018 13:07:08 +0000 (15:07 +0200)
commit369ca6dab1fb8fd6289701af80e632667dadb5a4
tree8f17fb2d135f82638c6e3c5d450482a4d4135c44
parenta2689fa5fcbfa31eca51db1b2b4a808835429332
systemd-nspawn: do not crash on /var/log/journal creation if not required

When running a read-only file system, we might not be able to create
/var/log/journal. Do not fail on this, unless actually requested by the
--link-journal options.

$ systemd-nspawn --image=image.squashfs ...
src/nspawn/nspawn.c