On 07/02/2021 15:26, Jim Martin wrote:
On 2/7/21 6:38 AM, Frans de Boer wrote:
LS,

Finally had a change to finish the LFS build. Alas, the grub-install reported the old error "Decompression is too big".
Here is the solution to add to the section to compile grub:

# Patch gentpl.py to avoid an error from grub-mkinstall "Decompressor is too big"
# Source: https://www.mail-archive.com/grub-devel@gnu.org/msg29840.html
#
sed -i -E "s@(.*-R .note.gnu.gold-version -R)(.*)@\1 .note.gnu.property -R\2@" gentpl.py
ln -fs /usr/bin/python3 /usr/bin/python  # grub needs 'python'
./autogen.sh
rm -f /usr/bin/python

./configure .......

--- Frans.

Thanks for this Frans ! I just ran across this same error yesterday working with LFS - Version 20210206-systemd.

I also noticed that the grub-install actually worked in spite of this error.

Much to my surprise the system actually booted ...

I am working through the LFS- Version 20210206-systemd install again and will add in the fix and see how it goes...

Jim

It works on sysvinit and systemd configurations. After all, the compile of grub is the same for both versions. And, yes, the systems will boot, but when using scripts to build LFS and being halted because of errors, I added the last three lines to get everything cleanly compiled and installed.

Pierre is looking if there is another patch possible. For now we can work with it.

--- Frans.

--
A: Yes, just like that                            A: Ja, net zo
Q: Oh, Just like reading a book backwards         Q: Oh, net als een boek 
achterstevoren lezen
A: Because it upsets the natural flow of a story  A: Omdat het de natuurlijke 
gang uit het verhaal haalt
Q: Why is top-posting annoying?                   Q: Waarom is Top-posting zo 
irritant?

--
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