diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2022-09-20 12:20:58 -0500 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2022-09-20 12:20:58 -0500 |
commit | 16cd09633edb80d587548ce3cd2296b4b803f210 (patch) | |
tree | a6a1c8b087bde5baeee7ad1ff0157d46697cde7d /chapter11/afterlfs.xml | |
parent | cc8e57dc7ad8dd6acc35b050fbd2a92c352bb9e8 (diff) |
Adjust instructions for /dev/shm when creating virtual filesystems.
Some host create /dev/shm as a tmpfs. Some have is as
a symlink to a location in another directory. This
change handles both cases.
The change to the sysV bootscripts now creates /dev/shm
as a separate tmpfs from /run. This makes LFS sysV and
systemd versions treat /dev/shm the same.
Diffstat (limited to 'chapter11/afterlfs.xml')
-rw-r--r-- | chapter11/afterlfs.xml | 7 |
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 |