On Wed, Apr 25, 2012 at 11:26:15AM +0200, Harald Hoyer wrote:

Hi Harald,

[..]
>      is_mpath() {
> -        [ -e /sys/dev/block/$1/dm/uuid ] || return 1
> -        [[ $(cat /sys/dev/block/$1/dm/uuid) =~ ^mpath- ]] && return 0
> +        local _dev
> +        _dev=${1##/dev/}
> +        [ -e /sys/dev/block/$_dev/dm/uuid ] || return 1
> +        [[ $(cat /sys/dev/block/$_dev/dm/uuid) =~ ^mpath- ]] && return 0

Will this work? _dev is device name (sda) and /sys/dev/block/ has links
based on device "maj:min". I applied this patch and ran dracut and I 
see that multipath module did not get included.

Thanks
Vivek
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to