On Wed, Oct 25, 2017 at 08:24:33PM -0500, DJ Lucas wrote:
>
>
> On 10/25/2017 11:02 AM, Bruce Dubbs wrote:
> > Ken Moffat wrote:
> > > On Tue, Oct 24, 2017 at 03:30:10PM -0700, Paul Rogers wrote:
> > > >
> > > (trimming to one point)
> > > > So, once LFS is finished, then there may be some "essentials" one needs
> > > > immediately, e.g. preferred editor, environment, iptables firewall,
> > > > etc., but soon after that one needs to get networking running, boot and
> > > > run in the new system. Yes, the LFS system is so Spartan it's
> > > > unpleasant to use, but there's no good reason to put off booting too
> > > > long. It's better done before there are too many added complications.
> >
> > I have no problem accessing the internet from chroot. You only have to
> > ensure that the virtual file systems are mounted as in LFS Section 6.2.2
> > and 6.2.3.
> >
> >
> > $ cat mount-virt.sh
> > #!/bin/bash
> >
[...]
> I use a lfs-chroot.sh script to do this in ~/bin. Probably not ideal for all
> users, but first one in umounts when it exits. Works for me.
>
> #!/bin/bash
> # Begin ~/bin/lfs-chroot.sh
>
> UMOUNT=0
>
> mount | grep /media/lfs/dev
[...]
Just for variation (and noting that I have /sources (an nfs mount for
me), and in chroot /logs, as bind mounts below /mnt/lfs) I use a
one-liner:
mount | grep lfs | awk '{ print $3 }' | tac | xargs umount
At least, I think that's what I use, but my recent errors suggest
I've probably made an error somewhere - if I haven't built for a
while, I usually stop the first run after 'tac' to be sure it looks
sane ;-)
And I'm shocked (not ;-) at people using /media/lfs - I still
haven't got my head around what the difference between /mnt and
/media is supposed to be, so I usually use /mnt (apart from
/mnt/lfs) for nfs mounts and /media for local devices - yeah, I
know, write me off as a heretic.
ĸen, now expecting to be burned at the stake :-|
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals
--
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