blob: 0eff6b0c254a69b7d1bc509507472a0ac74d5e12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/ash
run_hook() {
local cryptdev cryptname="root" cryptoptions
local QUIET
[ "${quiet}" = "y" ] && QUIET=" > /dev/null"
if [ -n "${cryptdevice}" ]; then
IFS=: read cryptdev cryptname cryptoptions <<EOF
$cryptdevice
EOF
fi
kpartx -v -a "/dev/mapper/${cryptname}" ${QUIET}
if [ $? -ne 0 ]; then
err "The command \"kpartx /dev/mapper/${cryptname}\" did not run successfully!"
return 1
fi
}
# vim: set ft=sh ts=4 sw=4 et:
|