# vim: filetype=sh

# we want to allow LVM to work with devices of different
# sector sizes.
tune_lvm()
{
    if [ -f /etc/lvm/lvm.conf ]
    then
        if grep -q allow_mixed_block_sizes /etc/lvm/lvm.conf
        then
            sed -i -e 's/.*\(allow_mixed_block_sizes.*=\).*/\1 1/g' \
                /etc/lvm/lvm.conf
        fi
    fi
}
