aboutsummaryrefslogtreecommitdiffstats
path: root/stage2
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-07-02 19:09:46 +0200
committerSven Gothel <[email protected]>2021-07-02 19:09:46 +0200
commit2bbf33e5f879209aa3f3ab1a6087e9d26ba03238 (patch)
tree0fb4a8e4f576c46f13eb00cc9521e5db801df354 /stage2
parent1cfeb1f72a91134daf789adffbc312fd91ee5ba9 (diff)
overlay_mount: Avoid double mount of 'tmpfs /tmp tmpfs'
Diffstat (limited to 'stage2')
-rwxr-xr-xstage2/01-sys-tweaks/files/overlay_mount4
1 files changed, 3 insertions, 1 deletions
diff --git a/stage2/01-sys-tweaks/files/overlay_mount b/stage2/01-sys-tweaks/files/overlay_mount
index a107bf7..d0f2a0d 100755
--- a/stage2/01-sys-tweaks/files/overlay_mount
+++ b/stage2/01-sys-tweaks/files/overlay_mount
@@ -11,7 +11,9 @@
case "$1" in
start)
log_daemon_msg "Starting overlay_mount"
- /bin/mount -t tmpfs -o rw,suid,dev,exec,nouser,async,noatime,mode=0777,size=64M tmpfs /tmp &&
+ if ! /bin/grep "tmpfs /tmp tmpfs" /proc/mounts ; then
+ /bin/mount -t tmpfs -o rw,suid,dev,exec,nouser,async,noatime,mode=0777,size=64M tmpfs /tmp
+ fi
/bin/mkdir -p /tmp/overlay/etc/upper /tmp/overlay/etc/work \
/tmp/overlay/home/upper /tmp/overlay/home/work \
/tmp/overlay/var/upper /tmp/overlay/var/work &&