I'm probably going to seem incredibly dense here, but I
don't think I accurately described my situation before. I
am in chapter 8. Everything is set up, but the kernel. It
was at this point that my machine went down.
I have the revised chroot pretty much memorized at this point.
users; me, lfs, and root all have the proper permissions set.
Echo $LFS returns /mnt/lfs.
I switch to root, head into my lfs file system. When I execute this
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
the revised chroot (as /tools no longer exists), the response that
I get is "bash: chroot: command not found"
edit: for some reason i have to now use /usr/sbin/chroot
so, now I get
"/usr/sbin/chroot: cannot run command `/usr/bin/env': No such file or directory"
a quick cd /usr/bin and there is env. hmmm. I have the feeling I am going to
feel silly when this is done.
edit2: odd that /usr/bin/env exists on both my host and in /lfs, yet I am being told
edit 3: Yep, I am slow. It is embarassing to admit, but just in case anyone else ever does
this I will record my mistake here. If you get booted or need to exit from not only the
chroot but have your machine crash - you must remount the partition, not just
parts of its file system. You can mount /proc and /sys all you want, but if the entire
contents of /mnt/lfs do not appear in /lfs you will get nowhere.