On Sat, 2 Jul 2005, Stephen Liu wrote:
> [EMAIL PROTECTED] ~]$ su -
> Password:
> [EMAIL PROTECTED] ~]# mkdir -p $LFS/{proc,sys}
> [EMAIL PROTECTED] ~]# mount -t proc proc $LFS/proc
> mount: proc already mounted
> [EMAIL PROTECTED] ~]# mount -t sysfs sysfs $LFS/sys
> mount: sysfs already mounted or /sys busy
> mount: according to mtab, none is already mounted on
> /sys
>
Stephen,
from 'man su' : The optional argument - may be used to provide an
environment similiar to what the user would expect had the user logged
in directly.
You've opened up a new root shel, and thereby thrown away all of the
environment variables that you set as user lfs, so now $LFS is not set.
In any case, you were running as user satimis before you su'd, so I
guess the environment for user lfs was not available to pass to root.
Exit from that root shell, logon (or su -) as user lfs, and check that
all necessary environment variables are set with 'printenv' (e.g.
everything in section 4.4 'Setting Up The Environment' should be set).
Then 'su' without the '-'
Ken
--
das eine Mal als Tragödie, das andere Mal als Farce
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page