[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shorten build process with live-build



On 02/09/2017 10:16 AM, Andreas Heinlein wrote:
Hello,

I have to come back to that issue my friend opened a while ago. I
finally found out why using libeatmydata does not seem to help (much) -
the script functions/chroot.sh in live-build cleans the environment
before entering the chroot and so also removes LD_PRELOAD from the
environment.

There are two solutions to this:

1.) include something like
'LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libeatmydata.so' in
config/environment.chroot in the config tree. That's what I did right
now in order to not modify live-build. It works and reduces build time
by about 35 minutes.


Oh, good catch. It seems like I already added that a long time ago but I forgot it even exists.

No need to specify the full path by the way:

$ cat config/environment
LD_PRELOAD=libeatmydata.so


Reply to: