summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-09-20 20:31:21 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-20 20:31:26 +0200
commitb48c132856f72f3446abfd6bf5873d2bd29f4a1c (patch)
tree52f85b248b346a930d088107723c9c25c2146573 /projectroot
parent5160d3652cb482d25360f39d0663d727183d5dbd (diff)
downloadptxdist-b48c132856f72f3446abfd6bf5873d2bd29f4a1c.tar.gz
ptxdist-b48c132856f72f3446abfd6bf5873d2bd29f4a1c.tar.xz
varoverlayfs: make run-varoverlayfs.mount a hidden dependency
The explict dependency would be nice because it allows systemd to find any dependency loops. However, we want to unmount /run/varoverlayfs at the end and the causes problems if it is part of local-fs.target. With the latest systemd booting just stops. So mount /run/varoverlayfs manually. Also add 'set -e' to abort early in case mounting fails. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/usr/sbin/mount.varoverlayfs2
1 files changed, 2 insertions, 0 deletions
diff --git a/projectroot/usr/sbin/mount.varoverlayfs b/projectroot/usr/sbin/mount.varoverlayfs
index f8fc8c88f..913004d15 100644
--- a/projectroot/usr/sbin/mount.varoverlayfs
+++ b/projectroot/usr/sbin/mount.varoverlayfs
@@ -4,6 +4,8 @@
# What kind of filesystem is used to mount over '/var' can be controlled via
# the 'run-varoverlayfs.mount' mount unit and is usually a RAM disk.
+set -e
+systemctl start run-varoverlayfs.mount
mkdir -p /run/varoverlayfs/upper
mkdir -p /run/varoverlayfs/work
mount -t overlay -olowerdir=/var,upperdir=/run/varoverlayfs/upper,workdir=/run/varoverlayfs/work "${@}"