Hi all.

I'm not sure to understand correctly the book :-( I'm using svn-10575
(20140611).

The book says :

mount -vt tmpfs tmpfs $LFS/run
[...]

   In some host systems, /dev/shm is a symbolic link to /run/shm. The /run
   tmpfs was mounted above so in this case only a directory needs to be
   created.
if [ -h $LFS/dev/shm ]; then
  mkdir -pv $LFS/$(readlink $LFS/dev/shm)
fi

At home, /dev/shm is actually a symlink to /run/shm.

In my previous build I had instead :

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/dev/shm
fi

i'm not sure it's exactly the same. I think it is but...

Can someone confirm or infirm thisĀ ?

Thanks in advance for answers.

-- 
Ph. Delavalade
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to