clfs-ng: kernfs: remove /dev/shm instruction merged from trunk

We've already added the command for /dev/shm in commit febac51.
This commit is contained in:
Xi Ruoyao 2022-09-26 22:04:24 +08:00
parent 0ea3431d66
commit 259794e02a
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -85,17 +85,6 @@ ln -sfv /proc/self/fd/1 /dev/stdout
ln -sfv /proc/self/fd/2 /dev/stderr
ln -sv /proc/self/fd /dev</userinput></screen>
<para>In other cases <filename>/dev/shm</filename> is a mountpoint
for a tmpfs. In that case the mount of /dev above will only create
/dev/shm in the chroot environment as a directory. In this situation
we explicitly mount a tmpfs,</para>
<screen><userinput>if [ -h $LFS/dev/shm ]; then
mkdir -pv $LFS/$(readlink $LFS/dev/shm)
else
mount -t tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm
fi</userinput></screen>
</sect2>
</sect1>