commit:     1ff8e13eae1052c56989bd313da860ef73c7bedd
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 20:30:52 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 22:56:47 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1ff8e13e

defaults/initrd.scripts: mount_devfs(): Make sure that /dev/shm is available

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 defaults/initrd.scripts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index d95da4d..1bf778d 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() {

Reply via email to