Alan Feuerbacher wrote:
On 9/13/2014 1:07 AM, Bruce Dubbs wrote:
Alan Feuerbacher wrote:
I just finished installing most of LFS Version 7.6-systemd-rc2, up to
Section 6.72 of the LFS book.

I got an error when I tried to chroot as instructed:

########################
root:/# chroot "$LFS" /usr/bin/env -i              \
 >     HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
 >     PATH=/bin:/usr/bin:/sbin:/usr/sbin     \
 >     /bin/bash --login
chroot: failed to get attributes of '': No such file or directory
########################

Bash is definitely installed properly:

So is env:


Any clue what's going wrong?

The environment variable LFS is not set.

That apparently was not the problem, since LFS was set. I double-checked
it just now.

Now I'm remembering that I got the same error the other day with a
non-systemd LFS system, but I failed to record the circumstances, so I
don't know exactly what happened other than I just gave up and started
something else.

I went through the entire manual installation in one sitting, with no
errors. However, the test of the final installation of glibc failed a
lot of tests.

See if you get the same thing from:

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

Also see if /mnt/lfs/usr/bin/env exists.


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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to