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

Bug#619670: initramfs-tools: make robust against libraries only runtime-linkable due to /etc/ld.so.conf*



On Sat, 26 Mar 2011, Colin Watson wrote:

> 
> I looked at fixing this by copying in /etc/ld.so.conf* and running
> ldconfig, but this turned out to be very difficult due to the way
> mkinitramfs symlinks libraries during initramfs creation, and I ended up
> giving this up as infeasible for the time being.  I think it's better to
> have copy_exec check whether the target directory name is only on the
> linker search path by virtue of /etc/ld.so.conf*, and if so, install to
> /lib or /usr/lib as appropriate instead.

There is a branch out there that gives up that symlink mess and runs
ldconfing on the built initramfs. I intent to upload it for 0.99.
It was prompted due to a similar long bug search #612633
http://git.debian.org/?p=kernel/initramfs-tools.git;a=shortlog;h=refs/heads/maks/mkinitramfs_cp

currently a bit frustrated as the review of initramfs-tools branches
got stalled. (we'd only merge branches if other maintainer has reviewed
it).  It paid of for squeeze as never had so less bug reports on a release,
but still currently too many branches and stuff pilling up, see bottom
http://git.debian.org/?p=kernel/initramfs-tools.git;a=summary
 
> I don't know whether you'll want to take this patch exactly, or refine
> it, or do something else entirely; but I've tried to make it relatively
> safe and it may be worth it for robustness even if you aren't running
> into this problem in Debian right now.

Thanks a lot for the submisson, as mentioned running ldconfig is
considered better.
 
-- 
maks



Reply to: