summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-23 22:30:52 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-24 00:56:47 +0200
commit1ff8e13eae1052c56989bd313da860ef73c7bedd (patch)
tree1301bf72396cf70775957ded4188a28d1217ab84 /defaults
parentdefaults/linuxrc: Make use of PATH (diff)
downloadgenkernel-1ff8e13eae1052c56989bd313da860ef73c7bedd.tar.gz
genkernel-1ff8e13eae1052c56989bd313da860ef73c7bedd.tar.bz2
genkernel-1ff8e13eae1052c56989bd313da860ef73c7bedd.zip
defaults/initrd.scripts: mount_devfs(): Make sure that /dev/shm is available
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'defaults')
-rw-r--r--defaults/initrd.scripts4
1 files changed, 4 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index d95da4db..1bf778d9 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1043,6 +1043,10 @@ mount_devfs() {
run mkdir -m 0755 /dev/pts
run mount -t devpts -o gid=5,mode=0620 devpts /dev/pts || bad_msg "Failed to mount /dev/pts"
fi
+
+ run mkdir -m 1777 /dev/shm
+ run mount -t tmpfs -o mode=1777,nosuid,nodev,strictatime tmpfs /dev/shm \
+ || bad_msg "Failed to mount /dev/shm"
}
test_success() {