aboutsummaryrefslogtreecommitdiffstats
path: root/chapter11/afterlfs.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter11/afterlfs.xml')
-rw-r--r--chapter11/afterlfs.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/chapter11/afterlfs.xml b/chapter11/afterlfs.xml
index 4afc8ecf7..279cc1108 100644
--- a/chapter11/afterlfs.xml
+++ b/chapter11/afterlfs.xml
@@ -129,7 +129,12 @@ mounttype dev/pts devpts devpts -o gid=5,mode=620
mounttype proc proc proc
mounttype sys sysfs sysfs
mounttype run tmpfs run
-mkdir $LFS/run/shm
+if [ -h $LFS/dev/shm ]; then
+ mkdir -pv $LFS/$(readlink $LFS/dev/shm)
+else
+ mounttype dev/shm tmpfs tmpfs -o nosuid,nodev
+fi
+
#mountbind usr/src
#mountbind boot
#mountbind home