[lfs-dev] [lfs-book] r10440 - in trunk/BOOK: . chapter01 chapter06
pierre.labastie at neuf.fr
Wed Jan 22 14:14:50 PST 2014
Le 22/01/2014 18:34, Bruce Dubbs a écrit :
> Pierre Labastie wrote:
>> Reading the new instructions, it seems to me that in case /dev/shm is
>> not a link, and /dev is not a tmpfs (could be the case on old or custom
>> distros), then $LFS/dev/shm is a disk directory, instead of a tmpfs.
>> Of course, it is possible that right now, nothing in LFS uses /dev/shm,
>> but who knowswhat may happen later?
>> I suggest changing the last instructions on the "6.2. Preparing Virtual
>> KernelFile Systems" to:
>> if [ -h $LFS/dev/shm ]; then
>> mkdir -pv $LFS/$(readlink $LFS/dev/shm)
>> mount -vt tmpfs shm $LFS/dev/shm
> That seems to be overkill to me. Shared memory is the ability for two
> or more processes to share data. That is, a form of inter-process
> communication. The only possibility there is when running one of the
> test suites. I'm fairly sure that doesn't happen or that /dev/shm is
> cleaned up at the end of the test. I don't think we need to account for
> every possible host system.
It slightly changes the logic for umounting in jhalfs...
More information about the lfs-dev