Opened 12 years ago

Last modified 12 years ago

#3258 closed defect

Mounting /dev/shm can break some hosts — at Initial Version

Reported by: Matthew Burgess Owned by: lfs-book@…
Priority: normal Milestone: 7.3
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.