aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts')
-rw-r--r--bootscripts/ChangeLog3
-rw-r--r--bootscripts/lfs/init.d/mountvirtfs8
2 files changed, 8 insertions, 3 deletions
diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog
index c1b590568..1fca16a65 100644
--- a/bootscripts/ChangeLog
+++ b/bootscripts/ChangeLog
@@ -1,3 +1,6 @@
+2022-09-30 Bruce Dubbs <bdubbs@linuxfromscratch.org>
+ * Mount /dev/shm as a tmpfs.
+
2022-07-23 Thomas Trepl <thomas@linuxfromscratch.org>
* Mark an raid array clean when root (/) has been remounted
r/o when system goes down. Otherwise, array does remain
diff --git a/bootscripts/lfs/init.d/mountvirtfs b/bootscripts/lfs/init.d/mountvirtfs
index 639634377..21d98a05d 100644
--- a/bootscripts/lfs/init.d/mountvirtfs
+++ b/bootscripts/lfs/init.d/mountvirtfs
@@ -38,8 +38,8 @@ case "${1}" in
mount /run || failed=1
fi
- mkdir -p /run/lock /run/shm
- chmod 1777 /run/shm /run/lock
+ mkdir -p /run/lock
+ chmod 1777 /run/lock
log_info_msg "Mounting virtual file systems: ${INFO}/run"
@@ -58,7 +58,9 @@ case "${1}" in
mount -o mode=0755,nosuid /dev || failed=1
fi
- ln -sfn /run/shm /dev/shm
+ mkdir -p /dev/shm
+ log_info_msg2 " ${INFO}/dev/shm"
+ mount -o nosuid,nodev /dev/shm || failed=1
(exit ${failed})
evaluate_retval