aboutsummarylogtreecommitdiffstats
path: root/kpartx_install
blob: 7f977c9506aa5d535c62ac83449538a11c269d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

build() {
    add_binary 'kpartx'

    add_runscript
}

help() {
    cat <<HELPEOF
If your decrypted device is not structured via LVM2, but has a GPT instead (to
save one level of indirection), its contained partitions do not show up as block
devices without further help. Unfortunately, tools like 'partprobe' or 'partx'
fail to establish those subdevices. Hence, a different approach has to be
followed by utilization of 'kpartx' from the 'multipath-tools' package which is
what this hook does. Just put this hook directly after the 'encrypt' hook.
HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: