]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: create boot_id and kmsg files for overmounting in /run, not /tmp
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Apr 2019 16:14:43 +0000 (18:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 7 Apr 2019 06:55:31 +0000 (08:55 +0200)
commit1eacc47062eecd1dda0fe5ba3f797bbd81988f37
treee8c30d40cc8187e9ddf0a1094da50ec00c46c584
parent9ff46eded2b99d244455467eb55c0ff3f51c5362
nspawn: create boot_id and kmsg files for overmounting in /run, not /tmp

/tmp might not be mounted at all yet (given that we support
SYSTEMD_NSPAWN_TMPFS_TMP=0 to turn this off), and /tmp is a dir systemd
usually tries to unmount during shutdown (unlike /run), and we shouldn't
keep it busy. Hence let's just move these deleted files to /run so that
we don't keep /tmp needlessly busy.
src/nspawn/nspawn.c