Package: multipath-tools-initramfs Version: 1.0.1 Severity: wishlist Tags: patch
Hi ! Here is a small patch for initramfs local-top script. 1. We do not load the multipath daemon in initrd 2. It seems safer to launch kpartx only on multipath devices -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (990, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.22.1-zoro.16 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash
--- scripts/local-top/multipath_script~ 2007-06-08 22:42:16.000000000 +0200 +++ scripts/local-top/multipath_script 2007-09-21 14:52:51.000000000 +0200 @@ -21,11 +21,10 @@ modprobe dm-multipath -echo "Loading multipath daemon" +echo "Detecting multipath disks" /sbin/multipath -v 0 - -for ASDF in /dev/mapper/*; do kpartx -a $ASDF; done +/sbin/dmsetup ls --target multipath --exec 'kpartx -a' exit 0