The multipath output then looks like:
...
 \_ #:#:#:# hda 3:0 ...

since there is no controller:bus:id:lun to read. O.k. to apply? Eases
testing with QEMU/KVM a lot.
Cheers,
 -- Guido

---
 packages/partman/partman-base/init.d/parted |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/packages/partman/partman-base/init.d/parted 
b/packages/partman/partman-base/init.d/parted
index ceb4811..6f6fc2e 100755
--- a/packages/partman/partman-base/init.d/parted
+++ b/packages/partman/partman-base/init.d/parted
@@ -26,7 +26,7 @@ part_of_multipath() {
        # The block devices that make up the multipath:
        # Output looks like \_ 4:0:0:1 sdc 8:32 ...
        for mpdev in $(multipath -l | \
-                      grep '_ \([0-9]\+:\)\{3\}[0-9]\+ sd[a-z]\+ 
[0-9]\+:[0-9]\+' | \
+                      grep '_ \([#0-9]\+:\)\{3\}[#0-9]\+ [hs]d[a-z]\+ 
[0-9]\+:[0-9]\+' | \
                       cut -f4 -d' '); do
                if [ "$(readlink -f /dev/$mpdev)" = $1 ]; then
                        return 0
-- 
1.5.4.1


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

Reply via email to