Since it seems traditional to provide one's own patch here is mine:

--- /usr/sbin/mkinitramfs.orig  2008-01-22 16:36:28.000000000 +0100
+++ /usr/sbin/mkinitramfs       2008-03-24 13:38:45.000000000 +0100
@@ -264,9 +264,18 @@
        fi
else
        rm -f ${DESTDIR}/bin/sh
-       rm -f ${DESTDIR}/bin/busybox
        copy_exec ${BUSYBOXDIR}/busybox /bin/busybox
-       ln -s ${BUSYBOXDIR}/busybox ${DESTDIR}/bin/sh
+       # Hack to make ${DESTDIR}/bin/busybox a real file, not a link
+       rm -f ${DESTDIR}/bin/busybox
+       cp ${BUSYBOXDIR}/busybox ${DESTDIR}/bin/busybox
+       ${DESTDIR}/bin/busybox |
+               sed -e '1,/^Currently/d' -e '/^$/d' \
+                       -e 's/,$//' -e 's/,/\n/g'  |
+ while read x; do + # preserve klib stuff
+                       test -h ${DESTDIR}/bin/"$x" ||
+                       ln -f ${DESTDIR}/bin/busybox ${DESTDIR}/bin/"$x"
+                done
fi

# Modutils





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to