On 09/26/2018 03:32 AM, Leo Nikolaev wrote:
Hi there!
Just passed LFS once again (first time was long ago) and thought about one
improvement.
While going through, I’ve managed to miss `make install` in util-linux in
Chapter 5. Later on, I’ve found my mistake, but the only lifesaver was my
taring of the tools directory.
So this is what I’ve thought about: maybe it makes sense to create some kind of
script, which will check the consistency of directories. It could be run at the
end of Chapter 5 and Chapter 6 to ensure all files are in place.
Sounds reasonable or I'm just overwatching something?
Yes, I know, there is an option whether to install the documentation, but test
script could check only the existence of essential files, skipping over
inessential.
And it looks rather simple — just diff over the list of files from reference
system.
We'll think about that. A sanity check at the end of Chapters 5 and 6
may be a reasonable thing to do. For Chapter 5, a comparison of
/tools/{bin,sbin,lib} may be sufficient. For Chapter 6 it would need to
be /{bin,sbin,lib,usr/{bin,sbin,lib}} and perhaps /usr/libexec.
I suppose we could generate file lists, and have the user download them.
For chapter 5 it could be something like:
ls -R /tools/{bin,sbin,lib} > chapter5.files
diff -u c5-file.ref chapter5.files
-------
What do others think?
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page