Yasser Zamani wrote:

> Please see the Note at LFS-7.1 section 5.35 at
> http://www.linuxfromscratch.org/lfs/view/stable/chapter05/changingowner.html
> which says: "The commands in the remainder of this book must be performed
> while logged in as user root and no longer as user lfs. Also, double check
> that $LFS is set in root's environment."

That statement is only there for entering chroot:

chroot "$LFS" /tools/bin/env -i \
     HOME=/root                  \
     TERM="$TERM"                \
     PS1='\u:\w\$ '              \
     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
     /tools/bin/bash --login +h

If you want to set something up in /root/.bashrc, try this:

alias lfs='sudo /usr/sbin/chroot /mnt/lfs /usr/bin/env -i HOME=/root 
TERM="$TERM" PS1="\u:\w\\\\$ " PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/bash 
--login'

Note that you don't need $LFS in this case.

   -- Bruce

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