From 56f143e47fe981f6d166bf0d6c1d33753c057dd4 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 1 Mar 2018 15:50:17 +0100 Subject: [PATCH] systemd: Do not mount `/tmp` as tmpfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s preferred to put it on disk, so mask the unit. --- systemd.be0 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/systemd.be0 b/systemd.be0 index 43c141319..aba139f71 100755 --- a/systemd.be0 +++ b/systemd.be0 @@ -86,6 +86,9 @@ mee_install_post() { # Support Linux kernels built with `CONFIG_CMDLINE="init=/bin/systemd"` ln -v ${D}/lib/systemd/systemd ${D}/bin/systemd + + # Do not use tmpfs for `/tmp` + ln -vs /dev/null ${D}/etc/systemd/system/tmp.mount } ###############################################################################