Hi Ken,

Tks for your advice.

Repeated 4.4. Setting Up the Environment
http://www.sg.linuxfromscratch.org/lfs/view/6.0/chapter04/settingenvironment.html



Started a new Konsole

[EMAIL PROTECTED] ~]$ su - lfs
Password:

lfs:~$ echo $LFS
/mnt/lfs

lfs:~$ cat > ~/.bash_profile << "EOF"
> exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ '
/bin/bash
> EOF
lfs:~$ cat > ~/.bashrc << "EOF"
> set +h
> umask 022
> LFS=/mnt/lfs
> LC_ALL=POSIX
> PATH=/tools/bin:/bin:/usr/bin
> export LFS LC_ALL PATH
> EOF
lfs:~$

lfs:~$ exit
exit
[EMAIL PROTECTED] ~]$ umount /mnt/lfs
umount: /mnt/lfs is not mounted (according to mtab)
[EMAIL PROTECTED] ~]$ su
Password:
[EMAIL PROTECTED] satimis]# umount /mnt/lfs
umount: /mnt/lfs: not mounted

[EMAIL PROTECTED] satimis]# mkdir -p $LFS/{proc,sys}
[EMAIL PROTECTED] satimis]# mount -t proc proc $LFS/proc
mount: proc already mounted
[EMAIL PROTECTED] satimis]# mount -t sysfs sysfs
$LFS/sys
mount: sysfs already mounted or /sys busy
mount: according to mtab, none is already mounted on
/sys

Still the same error.

- snip -

>  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' 

Please advise how to check them.  TIA

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

Reply via email to