Denis Mugnier wrote:
Hi all,

The page
http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html
says :

if [ -h $LFS/dev/shm ]; then
   mkdir -pv $LFS/$(readlink $LFS/dev/shm)
fi

I use a debian host, and
echo $(readlink $LFS/dev/shm) return /run/shm
so the command (with LFS=/mnt/lfs)
mkdir -pv $LFS/$(readlink $LFS/dev/shm) create the /mnt/lfs//run shm
directory (with two //)

I think that the correct directory is /mnt/lfs/run/shm.

It is a bug ? (and the command is  mkdir -pv $LFS$(readlink
$LFS/dev/shm) instead mkdir -pv $LFS/$(readlink $LFS/dev/shm) (no /
after $LFS) ?

It you look at a lot of build logs, you will see a lot of places with double slashes.

http://unix.stackexchange.com/questions/1910/how-linux-handles-multiple-path-separators-home-username-file

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to