Changes between Initial Version and Version 2 of Ticket #3258


Ignore:
Timestamp:
12/23/2012 06:28:33 PM (12 years ago)
Author:
bdubbs@…
Comment:

I've been thinking about this some more and the proposed solution appears to be correct for the case when the /dev/shm -> /run/shm symlink is present.

I'm not sure about the case when the symlink is not present, wouldn't we want to mount a new tmpfs directly on $LFS/dev/shm like we do now? Also, we probably don't want to make assumptions for where the symlink is pointing.

if [ -h $LFS/dev/shm ]; then
   link=$(readlink $LFS/dev/shm)
   mkdir -p $LFS/$link
   mount -vt tmpfs shm $LFS/$link
   unset link
else
   mount -vt tmpfs shm $LFS/shm 
fi

I'll make the change if we agree that this is the right way to go.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3258 – Description

    initial v2  
    55{{{
    66if [ -h $LFS/dev/shm ]; then
    7    mkdir -p $/LFS/run/shm
     7   mkdir -p $LFS/run/shm
    88   mount -vt tmpfs shm $LFS/run/shm
    99fi