#3258: Mounting /dev/shm can break some hosts
------------------------------------------+---------------------------------
Reporter: matthew@… | Owner: lfs-book@…
Type: defect | Status: new
Priority: normal | Milestone: 7.3
Component: Book | Version: SVN
Severity: normal | Keywords:
------------------------------------------+---------------------------------
As reported at http://www.linuxfromscratch.org/pipermail/lfs-
dev/2012-December/067476.html the instructions to work around the fact
that some hosts have symlinked /dev/shm to /run/shm can in fact break
those hosts. Once the /dev/shm symlink is removed from the host, it's
never recreated!
The fix from Pierre, in that thread, looks good:
{{{
if [ -h $LFS/dev/shm ]; then
mkdir -p $/LFS/run/shm
mount -vt tmpfs shm $LFS/run/shm
fi
}}}
So, we mount the shm FS into the target of the symlink, rather than
removing the symlink.
We'll need to add an errata item for this as well.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3258>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page