Re: [lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question

2012-05-13 Thread Andrew Benton
On Sun, 13 May 2012 06:58:57 +0100
Wayne Blaszczyk wblas...@bigpond.net.au wrote:

 Hi All,
 I've recently updated my main workstation to LFS 7.1 (From LFS 6.7), and
 noticed one of my auto build scripts is now failing.
 I've tracked it down to the following command.
 mount -vt tmpfs shm $LFS/dev/shm
 It seems to me that this command is mounting onto /run/shm rather than
 /mnt/lfs/dev/shm due to /mnt/lfs/dev/shm being a symlink to /run/shm.

Why is /mnt/lfs/dev/shm a symlink to /run/shm? The instructions for
mounting the virtual filesystems are:
mkdir -v $LFS/{dev,proc,sys}
mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html

 Further more, when entering chroot environment, /dev/shm is now pointing
 to a no existent /run/shm.
 Am I'm doing something wrong or is this a bug?

You're doing something weird. My guess is the
mount -v --bind /dev $LFS/dev step. It's mounting the /dev from your
host system on /mnt/lfs/dev. If /dev/shm on your host system is a
symlink pointing at /run/shm then that's what it will look like
in /mnt/lfs/dev too.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question

2012-05-13 Thread Wayne Blaszczyk
On 13/05/12 20:13, Andrew Benton wrote:
 On Sun, 13 May 2012 06:58:57 +0100
 Wayne Blaszczyk wblas...@bigpond.net.au wrote:
 
 Hi All,
 I've recently updated my main workstation to LFS 7.1 (From LFS 6.7), and
 noticed one of my auto build scripts is now failing.
 I've tracked it down to the following command.
 mount -vt tmpfs shm $LFS/dev/shm
 It seems to me that this command is mounting onto /run/shm rather than
 /mnt/lfs/dev/shm due to /mnt/lfs/dev/shm being a symlink to /run/shm.
 
 Why is /mnt/lfs/dev/shm a symlink to /run/shm? The instructions for
 mounting the virtual filesystems are:
 mkdir -v $LFS/{dev,proc,sys}
 mknod -m 600 $LFS/dev/console c 5 1
 mknod -m 666 $LFS/dev/null c 1 3
 mount -v --bind /dev $LFS/dev
 mount -vt devpts devpts $LFS/dev/pts
 mount -vt tmpfs shm $LFS/dev/shm
 mount -vt proc proc $LFS/proc
 mount -vt sysfs sysfs $LFS/sys
 http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html
 
 Further more, when entering chroot environment, /dev/shm is now pointing
 to a no existent /run/shm.
 Am I'm doing something wrong or is this a bug?
 
 You're doing something weird. My guess is the
 mount -v --bind /dev $LFS/dev step. It's mounting the /dev from your
 host system on /mnt/lfs/dev. If /dev/shm on your host system is a
 symlink pointing at /run/shm then that's what it will look like
 in /mnt/lfs/dev too.
 
 Andy

Yes, on my host system (which is LFS 7.1), /dev/shm is a symlink
pointing to /run/shm. This is what the mountvirtfs start script creates
during boot up. This is why I'm questioning if this is a bug?
Wayne.

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


Re: [lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question

2012-05-13 Thread Eleanore Boyd
On 5/13/2012 6:43 AM, Wayne Blaszczyk wrote:
 On 13/05/12 20:13, Andrew Benton wrote:
 On Sun, 13 May 2012 06:58:57 +0100
 Wayne Blaszczykwblas...@bigpond.net.au  wrote:

 Hi All,
 I've recently updated my main workstation to LFS 7.1 (From LFS 6.7), and
 noticed one of my auto build scripts is now failing.
 I've tracked it down to the following command.
 mount -vt tmpfs shm $LFS/dev/shm
 It seems to me that this command is mounting onto /run/shm rather than
 /mnt/lfs/dev/shm due to /mnt/lfs/dev/shm being a symlink to /run/shm.
 Why is /mnt/lfs/dev/shm a symlink to /run/shm? The instructions for
 mounting the virtual filesystems are:
 mkdir -v $LFS/{dev,proc,sys}
 mknod -m 600 $LFS/dev/console c 5 1
 mknod -m 666 $LFS/dev/null c 1 3
 mount -v --bind /dev $LFS/dev
 mount -vt devpts devpts $LFS/dev/pts
 mount -vt tmpfs shm $LFS/dev/shm
 mount -vt proc proc $LFS/proc
 mount -vt sysfs sysfs $LFS/sys
 http://www.linuxfromscratch.org/lfs/view/development/chapter06/kernfs.html

 Further more, when entering chroot environment, /dev/shm is now pointing
 to a no existent /run/shm.
 Am I'm doing something wrong or is this a bug?
 You're doing something weird. My guess is the
 mount -v --bind /dev $LFS/dev step. It's mounting the /dev from your
 host system on /mnt/lfs/dev. If /dev/shm on your host system is a
 symlink pointing at /run/shm then that's what it will look like
 in /mnt/lfs/dev too.

 Andy
 Yes, on my host system (which is LFS 7.1), /dev/shm is a symlink
 pointing to /run/shm. This is what the mountvirtfs start script creates
 during boot up. This is why I'm questioning if this is a bug?
 Wayne.

The book doesn't use auto scripts for anything. Any problems encountered 
using auto scripts that you wrote would point to something you need to 
change to accommodate the host system and building LFS.

So no, it isn't a bug in the book.

Elly
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question

2012-05-13 Thread Andrew Benton
On Sun, 13 May 2012 12:43:57 +0100
Wayne Blaszczyk wblas...@bigpond.net.au wrote:

 
 Yes, on my host system (which is LFS 7.1), /dev/shm is a symlink
 pointing to /run/shm. This is what the mountvirtfs start script creates
 during boot up. This is why I'm questioning if this is a bug?
 Wayne.

Yes, that looks like a bug in the bootscripts. I use my own custom
bootscripts so I was unaware of the problem with mountvirtfs. You
should probably open a ticket about this.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] 6.2.3. Mounting Virtual Kernel File Systems question

2012-05-12 Thread Wayne Blaszczyk
Hi All,
I've recently updated my main workstation to LFS 7.1 (From LFS 6.7), and
noticed one of my auto build scripts is now failing.
I've tracked it down to the following command.
mount -vt tmpfs shm $LFS/dev/shm
It seems to me that this command is mounting onto /run/shm rather than
/mnt/lfs/dev/shm due to /mnt/lfs/dev/shm being a symlink to /run/shm.
Further more, when entering chroot environment, /dev/shm is now pointing
to a no existent /run/shm.
Am I'm doing something wrong or is this a bug?
Thanks,
Wayne.


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