File: lvm

package info (click to toggle)
debootstick 2.8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 296 kB
  • sloc: sh: 1,364; makefile: 34
file content (15 lines) | stat: -rw-r--r-- 345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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
}