On 9/13/2014 12:00 PM, Bruce Dubbs wrote:
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.
Before seeing this response, I went back and started the process of
chroot'ing from the beginning, going through whatever seemed appropriate
in the LFS book. That cleared up whatever problem existed, and I
finished the installation up to the point of rebooting into the new LFS
system.
I completely restarted my host system and did the necessary things to
get back to the final chroot environment per Section 6.72. I verified
several things based on your above comments:
On the host system, /mnt/lfs/usr/bin/env exists.
On the lfs system, /usr/bin/env exists.
So I'm still clueless as to what went wrong first time around. If I
rebuild the system again from square one, I'll keep careful track of
every step.
Alan
--
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