Bug#612633: initramfs-tools: mkinitramfs creates non working initramfs
On Fri, 11 Feb 2011, Benedikt Spranger wrote:
> Am Thu, 10 Feb 2011 21:39:51 +0000
> schrieb maximilian attems <max@stro.at>:
>
> > On Thu, Feb 10, 2011 at 07:33:17PM +0100, Benedikt Spranger wrote:
> > > Am Thu, 10 Feb 2011 17:48:36 +0000
> > > schrieb maximilian attems <max@stro.at>:
> > > > what does on that box 'ldconfig -p' show?
> Output attached.
>
I see, and then we would need the ldconfig from inside the broken
initramfs, so you need
A) add ldconfig inside the initramfs
echo "copy_exec /sbin/ldconfig /bin/" >> /usr/share/initramfs-tools/hooks/busybox
B) generate the resulting initramfs
(with the patched mkinitramfs adding /etc/ld.so.conf* to initramfs)
mkinitramfs -o /tmp/foo.broken
C) unpack that initramfs
mkdir /tmp/la && cd /tmp/la; zcat ../foo.broken | cpio -i
D) chroot into it
chroot ./ /bin/sh
E) run ldconfig three times:
(first invocation should tell that no cache around, second should
built it and we need output of third)
ldconfig -p
ldconfig
ldconfig -p
thank you!
--
maks
Reply to: