On Sun, Sep 14, 2014 at 06:10:08PM -0400, Alan Feuerbacher wrote:
> 
> Hmm. Up to this point I've done most BLFS stuff on the host system, because
> I found several years ago that it was much easier having all the tools
> available that are not yet installed on the target system.
> 
> What are the implications of doing most BLFS stuff on the host system in
> chroot, as opposed to doing it on the running target system? In my
> ignorance, I would have thought that using chroot on the target system was
> the way to go.
> 
> Alan
> 
 Building in BLFS in chroot is mostly ok.  Occasionally, people get
strange errors : one package, probably firefox, has a note that in
chroot you need to specify the shell : I have no opinion on whether
or not that is true (specifically, it was true for somebody, so I
suppose I have no opinion on whether it is _still_ true and applies
to _all_shells_.

 In chroot, there are three things you cannot test:

1. booting, in particular: does the kernel config work for you, and
is your grub config ok ?  For both of these, I would prefer to find
out sooner rather than later.  Mostly. I edit the grub file on the
host system. and build from the same kernel on the (LFS) host.  And
in _all_ cases I build some of BLFS at the end of LFS (e.g. fcron,
nfs, openssh, rsync, links, some of alsa).

2. bootscripts or systemd units.

3. in general, you cannot test if what you have just built actually
works when you run it.

 So, if I'm dubious about the kernel, or grub, configs then I will
try to boot the new system to check them.  Sometimes, I build past
firefox in chroot so that the new system will be partially-usable,
other times I boot and accept a limited usability while I build the
rest of it [ fun if it doesn't build, e.g. my experience last week
with the ati xorg driver ].

 But once you have built LFS a few times, you really ought to be
looking at scripting it (and, from my experience, understanding what
happens _when_ your scripts fail).  They don't have to be your own
scripts, but sticking with the project and building it all by copy
and paste is a tedious process.

ken [ again, I forgot that urxvt under xfce under lxdm is ignoring
my AltGr key, but this time I spotted it before posting! ]
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
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