From cf763e204f421def01683441fbc5e64f219b1feb Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Wed, 3 Feb 2021 12:22:41 +0100 Subject: [PATCH] init: create /run tmpfs in init The filesystem options are set to match what systemd is using when it would create the /run tmpfs, see src/core/mount-setup.c in systemd source code. Signed-off-by: Matthias Reichl --- packages/sysutils/busybox/scripts/init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index b747a53e88..988e3a7f89 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -14,6 +14,7 @@ /usr/bin/busybox mkdir -p /flash /usr/bin/busybox mkdir -p /sysroot /usr/bin/busybox mkdir -p /storage +/usr/bin/busybox mkdir -p /run # temp mountpoint for updates /usr/bin/busybox mkdir -p /update @@ -22,6 +23,8 @@ /usr/bin/busybox mount -t devtmpfs devtmpfs /dev /usr/bin/busybox mount -t proc proc /proc /usr/bin/busybox mount -t sysfs sysfs /sys +# /run options have to match what systemd uses by default +/usr/bin/busybox mount -t tmpfs -o mode=755,size=20%,nr_inodes=800k,nosuid,nodev,strictatime tmpfs /run UPDATE_ROOT=/storage/.update UPDATE_DIR="$UPDATE_ROOT"