Bug#345949: initramfs-tools: mkinitramfs does not copy klibc library
Package: initramfs-tools
Version: 0.47.1
Severity: grave
Justification: renders package unusable
Hi,
After upgrade my system and installing a new kernel my system would fail while
booting because the initramfs image was missing the klibc library.
The last version of libklibc has moved the library from /usr/lib/klibc/lib to
/lib and mkinitramfs does not look there.
Attached is a patch which fixes this.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-3-test
Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8)
Versions of packages initramfs-tools depends on:
ii busybox 1:1.01-4 Tiny utilities for small and embed
ii cpio 2.6-10 GNU cpio -- a program to manage ar
ii klibc-utils 1.1.14-2 small statically-linked utilities
ii udev 0.079-1 /dev/ and hotplug management daemo
initramfs-tools recommends no packages.
-- no debconf information
--- initramfs-tools-0.47/mkinitramfs 2005-12-31 14:19:44.000000000 +0100
+++ initramfs-tools-0.47.1/mkinitramfs 2006-01-04 14:20:24.000000000 +0100
@@ -159,7 +159,11 @@
# symlinks.
ln -s /usr/lib/klibc/bin/* ${DESTDIR}/bin
-ln -s /usr/lib/klibc/lib/klibc-*.so ${DESTDIR}/lib
+if [ -e /lib/klibc-*.so ] ; then
+ ln -s /lib/klibc-*.so ${DESTDIR}/lib
+else
+ ln -s /usr/lib/klibc/lib/klibc-*.so ${DESTDIR}/lib
+fi
copy_exec /usr/share/initramfs-tools/init /init
cp -a /usr/share/initramfs-tools/scripts/* "${DESTDIR}/scripts"
for f in $(cd ${CONFDIR}/scripts && \
Reply to: