Package: dmraid Version: 1.0.0.rc15-8 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch karmic
grep is only needed in the initramfs (see #528998) if BUSYBOX=n. Otherwise, it's just 100KB of useless junk in the initramfs, which slows down boot; since we configure busybox to prefer its own applets when available, it isn't even used. (I haven't tested this patch on Debian, only on Ubuntu, I'm afraid, but it should be very quick to test; just try generating an initramfs with both BUSYBOX=y and BUSYBOX=n, look at the contents of the initramfs with 'zcat initrd.img | cpio -itv | grep grep' to check whether grep is there in each case.) Thanks, -- Colin Watson [cjwat...@ubuntu.com]
diff -u dmraid-1.0.0.rc15/debian/initramfs/dmraid.initramfs-hook/dmraid dmraid-1.0.0.rc15/debian/initramfs/dmraid.initramfs-hook/dmraid --- dmraid-1.0.0.rc15/debian/initramfs/dmraid.initramfs-hook/dmraid +++ dmraid-1.0.0.rc15/debian/initramfs/dmraid.initramfs-hook/dmraid @@ -23,7 +23,9 @@ force_load dm-raid45 copy_exec /sbin/dmraid sbin copy_exec /sbin/dmraid-activate sbin - copy_exec /bin/grep bin + if [ "$BUSYBOX" = n ]; then + copy_exec /bin/grep bin + fi if [ -f /etc/udev/rules.d/85_dmraid.rules ]; then mkdir -p ${DESTDIR}/etc/udev/rules.d cp -p /etc/udev/rules.d/85_dmraid.rules ${DESTDIR}/etc/udev/rules.d